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/net/lib.rs | 3 +-- ext/net/ops.rs | 2 +- ext/net/ops_unix.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/net') diff --git a/ext/net/lib.rs b/ext/net/lib.rs index 64e28fd00..ad5b97a7a 100644 --- a/ext/net/lib.rs +++ b/ext/net/lib.rs @@ -45,8 +45,7 @@ impl UnstableChecker { pub fn check_unstable(&self, api_name: &str) { if !self.unstable { 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); } diff --git a/ext/net/ops.rs b/ext/net/ops.rs index 259703d17..1d84a1067 100644 --- a/ext/net/ops.rs +++ b/ext/net/ops.rs @@ -488,7 +488,7 @@ where .lookup(query, record_type) .await .map_err(|e| { - let message = format!("{}", e); + let message = format!("{e}"); match e.kind() { ResolveErrorKind::NoRecordsFound { .. } => { custom_error("NotFound", message) diff --git a/ext/net/ops_unix.rs b/ext/net/ops_unix.rs index d2933a573..1161d2759 100644 --- a/ext/net/ops_unix.rs +++ b/ext/net/ops_unix.rs @@ -27,7 +27,7 @@ pub use tokio::net::UnixStream; /// A utility function to map OsStrings to Strings pub fn into_string(s: std::ffi::OsString) -> Result { s.into_string().map_err(|s| { - let message = format!("File name or path {:?} is not valid UTF-8", s); + let message = format!("File name or path {s:?} is not valid UTF-8"); custom_error("InvalidData", message) }) } -- cgit v1.2.3