From 5d029cbf42621452666bd084f7beecb7d3d885a4 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Tue, 6 Apr 2021 21:24:59 +0200 Subject: Lint: Remove unnecessary conversions. - https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion --- ffi-macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffi-macros') 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! { -- cgit v1.2.3