From 85d9b613dd3d66e9fe23115fb9b5c1246a54d4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 30 Jan 2021 17:08:25 +0100 Subject: move things about --- tihdy_derive/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tihdy_derive') 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 + ) -> ::std::result::Result { 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())) } } } -- cgit v1.2.1