diff options
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(); |
