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/flash/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/flash') diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 7a7849be1..92490e0b8 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -723,7 +723,7 @@ fn op_flash_first_packet( return Ok(Some(buf.into())); } Err(e) => { - return Err(type_error(format!("{}", e))); + return Err(type_error(format!("{e}"))); } } } @@ -773,7 +773,7 @@ async fn op_flash_read_body( return n; } Err(e) if e.kind() == std::io::ErrorKind::InvalidInput => { - panic!("chunked read error: {}", e); + panic!("chunked read error: {e}"); } Err(_) => { drop(_lock); @@ -1493,8 +1493,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