summaryrefslogtreecommitdiff
path: root/ext/flash/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/flash/lib.rs')
-rw-r--r--ext/flash/lib.rs7
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);
}