diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ffi/lib.rs | 4 | ||||
-rw-r--r-- | ext/websocket/lib.rs | 2 |
2 files changed, 3 insertions, 3 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 _); diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 9358fb4b0..3384a8f9c 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -334,7 +334,7 @@ where .map_err(|err| { DomExceptionNetworkError::new(&format!( "failed to connect to WebSocket: {}", - err.to_string() + err )) })?; |