diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-30 17:08:25 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-30 17:08:38 +0100 |
| commit | 85d9b613dd3d66e9fe23115fb9b5c1246a54d4f0 (patch) | |
| tree | 116da6aa4c0280c66366eadce27d095b95ba6946 /tihdy_derive/src | |
| parent | 03977fdf0d09156dbee222194d0800b4ba8dde8b (diff) | |
| download | sylt-85d9b613dd3d66e9fe23115fb9b5c1246a54d4f0.tar.gz | |
move things about
Diffstat (limited to 'tihdy_derive/src')
| -rw-r--r-- | tihdy_derive/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tihdy_derive/src/lib.rs b/tihdy_derive/src/lib.rs index 7950d20..c0806ab 100644 --- a/tihdy_derive/src/lib.rs +++ b/tihdy_derive/src/lib.rs @@ -65,20 +65,20 @@ pub fn extern_function(tokens: TokenStream) -> TokenStream { let tokens = quote! { pub fn #function ( - __values: &[tihdy::vm::Value], + __values: &[tihdy::Value], __typecheck: bool - ) -> ::std::result::Result<tihdy::vm::Value, tihdy::error::ErrorKind> + ) -> ::std::result::Result<tihdy::Value, tihdy::error::ErrorKind> { if __typecheck { #[allow(unused_variables)] match __values { #(#typecheck_blocks),* - _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::vm::Type::from(v)).collect())) + _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::Type::from(v)).collect())) } } else { match __values { #(#eval_blocks),* - _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::vm::Type::from(v)).collect())) + _ => Err(tihdy::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| tihdy::Type::from(v)).collect())) } } } |
