diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-02 20:40:15 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-02 20:40:15 +0100 |
| commit | e49df17d1159507e50434d9d3f866a0c41dd59b9 (patch) | |
| tree | 00cab0eaaef0769e184f3a4c8d7d46a3680b8c2c /sylt_macro/src | |
| parent | 1aa5daae7c8b18b2ff4128c7bcc49db676e7e293 (diff) | |
| download | sylt-e49df17d1159507e50434d9d3f866a0c41dd59b9.tar.gz | |
as_value -> from
Diffstat (limited to 'sylt_macro/src')
| -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(); |
