aboutsummaryrefslogtreecommitdiffstats
path: root/sylt_macro/src/lib.rs
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-02-02 20:40:15 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-02-02 20:40:15 +0100
commite49df17d1159507e50434d9d3f866a0c41dd59b9 (patch)
tree00cab0eaaef0769e184f3a4c8d7d46a3680b8c2c /sylt_macro/src/lib.rs
parent1aa5daae7c8b18b2ff4128c7bcc49db676e7e293 (diff)
downloadsylt-e49df17d1159507e50434d9d3f866a0c41dd59b9.tar.gz
as_value -> from
Diffstat (limited to 'sylt_macro/src/lib.rs')
-rw-r--r--sylt_macro/src/lib.rs2
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();