diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-01-15 01:10:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 07:10:12 +0100 |
commit | ad224f53c798e8417a63d98daeaf3cadc199666c (patch) | |
tree | f323be53d4f5b4289cd04296af1d35028dc23b15 /ext/ffi/lib.rs | |
parent | 903cb48fe94bbbb0c43f17cf51e84a5583ddb728 (diff) |
chore: upgrade to rust 1.58 (#13377)
Diffstat (limited to 'ext/ffi/lib.rs')
-rw-r--r-- | ext/ffi/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index 8f06854d6..44f2e914e 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -57,6 +57,7 @@ struct Symbol { result_type: NativeType, } +#[allow(clippy::non_send_fields_in_send_ty)] unsafe impl Send for Symbol {} unsafe impl Sync for Symbol {} @@ -92,8 +93,7 @@ impl DynamicLibraryResource { Ok(value) => Ok(value), Err(err) => Err(generic_error(format!( "Failed to register symbol {}: {}", - symbol, - err.to_string() + symbol, err ))), }?; let ptr = libffi::middle::CodePtr::from_ptr(fn_ptr as _); |