aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-02-05 14:16:41 -0500
committerJesse Luehrs <doy@tozt.net>2023-02-05 14:16:41 -0500
commit9656f9f0382e508c4e9d35f160a7a9e6923f66f3 (patch)
tree543a0b1421e1a0a5be869cb8a6329942354f7b11 /examples
parent2fba99a5b7db0eab54febaecf57a4adb4b9046b6 (diff)
downloadpty-process-9656f9f0382e508c4e9d35f160a7a9e6923f66f3.tar.gz
pty-process-9656f9f0382e508c4e9d35f160a7a9e6923f66f3.zip
clippy
Diffstat (limited to 'examples')
-rw-r--r--examples/basic.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/basic.rs b/examples/basic.rs
index 8a56e57..db83818 100644
--- a/examples/basic.rs
+++ b/examples/basic.rs
@@ -36,7 +36,7 @@ mod main {
stdout.flush().unwrap();
}
Err(e) => {
- eprintln!("pty read failed: {:?}", e);
+ eprintln!("pty read failed: {e:?}");
break;
}
};
@@ -48,7 +48,7 @@ mod main {
pty.write_all(buf).unwrap();
}
Err(e) => {
- eprintln!("stdin read failed: {:?}", e);
+ eprintln!("stdin read failed: {e:?}");
break;
}
}
@@ -56,7 +56,7 @@ mod main {
}
}
Err(e) => {
- println!("select failed: {:?}", e);
+ println!("select failed: {e:?}");
break;
}
}
@@ -64,7 +64,7 @@ mod main {
Ok(Some(_)) => break,
Ok(None) => {}
Err(e) => {
- println!("wait failed: {:?}", e);
+ println!("wait failed: {e:?}");
break;
}
}