diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-27 10:43:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-27 10:43:16 -0500 |
| commit | f5840bdcd360ec0bac2501f333e58e25742b1537 (patch) | |
| tree | 7eb0818d2cafa0f6824e81b6ed2cfb609830971e /ext/flash | |
| parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) | |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/flash')
| -rw-r--r-- | ext/flash/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
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); } |
