From f5840bdcd360ec0bac2501f333e58e25742b1537 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 27 Jan 2023 10:43:16 -0500 Subject: chore: upgrade to Rust 1.67 (#17548) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- ext/ffi/dlfcn.rs | 6 ++---- ext/ffi/lib.rs | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'ext/ffi') 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); } -- cgit v1.2.3