aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ttyrec/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ttyrec/main.rs')
-rw-r--r--src/bin/ttyrec/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/ttyrec/main.rs b/src/bin/ttyrec/main.rs
index 1a3c03d..29cf09f 100644
--- a/src/bin/ttyrec/main.rs
+++ b/src/bin/ttyrec/main.rs
@@ -123,6 +123,7 @@ async fn async_main(opt: Opt) -> anyhow::Result<()> {
{
let event_w = event_w.clone();
+ #[allow(clippy::redundant_pub_crate)]
tokio::task::spawn(async move {
loop {
let mut buf = [0_u8; 4096];
@@ -135,7 +136,7 @@ async fn async_main(opt: Opt) -> anyhow::Result<()> {
// event_w is never closed, so this can never fail
.unwrap();
if err {
- eprintln!("pty read failed: {}", err);
+ eprintln!("pty read failed: {err}");
break;
}
}
@@ -212,7 +213,7 @@ fn main() {
match async_main(opt) {
Ok(_) => (),
Err(e) => {
- eprintln!("ttyrec: {}", e);
+ eprintln!("ttyrec: {e}");
std::process::exit(1);
}
};