diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-06 21:24:59 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:58 +0200 |
commit | 5d029cbf42621452666bd084f7beecb7d3d885a4 (patch) | |
tree | 21219c5864beac97ff5c55c78b436918034adcd6 /ffi-macros | |
parent | 9424cd350f32a97479a74d919c646f9e26c2ebce (diff) |
Lint: Remove unnecessary conversions.
- https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
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! { |