diff options
Diffstat (limited to 'tihdy_derive')
| -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())) } } } |
