diff options
Diffstat (limited to 'ffi-macros')
-rw-r--r-- | ffi-macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi-macros/src/lib.rs b/ffi-macros/src/lib.rs index 6eebc9a3..6f0ca859 100644 --- a/ffi-macros/src/lib.rs +++ b/ffi-macros/src/lib.rs @@ -428,7 +428,7 @@ fn derive_conversion_functions(mut st: syn::ItemStruct, return syn::Error::new(argument_span, "expected a single field") - .to_compile_error().into(); + .to_compile_error(); } fields.unnamed.pop(); fields.unnamed.push( @@ -463,7 +463,7 @@ fn derive_conversion_functions(mut st: syn::ItemStruct, syn::Error::new(argument_span, format!("expected tuple struct, try: {}(...)", wrapper)) - .to_compile_error().into(), + .to_compile_error(), }; quote! { |