diff options
Diffstat (limited to 'ext/ffi')
| -rw-r--r-- | ext/ffi/dlfcn.rs | 6 | ||||
| -rw-r--r-- | ext/ffi/lib.rs | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/ext/ffi/dlfcn.rs b/ext/ffi/dlfcn.rs index a6b870c30..570af09fc 100644 --- a/ext/ffi/dlfcn.rs +++ b/ext/ffi/dlfcn.rs @@ -46,8 +46,7 @@ impl DynamicLibraryResource { match unsafe { self.lib.symbol::<*const c_void>(&symbol) } { Ok(value) => Ok(Ok(value)), Err(err) => Err(generic_error(format!( - "Failed to register symbol {}: {}", - symbol, err + "Failed to register symbol {symbol}: {err}" ))), }? } @@ -156,8 +155,7 @@ where match unsafe { resource.lib.symbol::<*const c_void>(symbol) } { Ok(value) => Ok(value), Err(err) => Err(generic_error(format!( - "Failed to register symbol {}: {}", - symbol, err + "Failed to register symbol {symbol}: {err}" ))), }?; let ptr = libffi::middle::CodePtr::from_ptr(fn_ptr as _); diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index 64d731491..d97bb16b4 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -60,8 +60,7 @@ fn check_unstable(state: &OpState, api_name: &str) { if !unstable.0 { eprintln!( - "Unstable API '{}'. The --unstable flag must be provided.", - api_name + "Unstable API '{api_name}'. The --unstable flag must be provided." ); std::process::exit(70); } |
