diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-04 17:19:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-04 17:19:26 +0100 |
| commit | 2fe11b8cff6ce1980cb31c12cb054bdefac0d7bf (patch) | |
| tree | 9a76534b0b60fa1c9423e488418f33d8009f0595 /sylt_macro/src/lib.rs | |
| parent | a2730810d77e4a5f0d7a90f10ed84d5183cfbdae (diff) | |
| parent | 2c5f13a4d1043e481835621e3b72d8ba5abf1427 (diff) | |
| download | sylt-2fe11b8cff6ce1980cb31c12cb054bdefac0d7bf.tar.gz | |
Merge pull request #41 from FredTheDino/refactor
refactor
Diffstat (limited to 'sylt_macro/src/lib.rs')
| -rw-r--r-- | sylt_macro/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sylt_macro/src/lib.rs b/sylt_macro/src/lib.rs index 241ef7d..fc43b5c 100644 --- a/sylt_macro/src/lib.rs +++ b/sylt_macro/src/lib.rs @@ -51,7 +51,7 @@ pub fn extern_function(tokens: TokenStream) -> TokenStream { let pat = block.pattern.clone(); let ty = block.return_ty.clone(); quote! { - #pat => { Ok(#ty.as_value()) } + #pat => { Ok(sylt::Value::from(#ty)) } } }).collect(); |
