aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
parent2fba99a5b7db0eab54febaecf57a4adb4b9046b6 (diff)
downloadpty-process-9656f9f0382e508c4e9d35f160a7a9e6923f66f3.tar.gz
pty-process-9656f9f0382e508c4e9d35f160a7a9e6923f66f3.zip
clippy
Diffstat (limited to 'src')
-rw-r--r--src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index db9c647..8ed24e2 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -13,8 +13,8 @@ pub enum Error {
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
- Self::Io(e) => write!(f, "{}", e),
- Self::Nix(e) => write!(f, "{}", e),
+ Self::Io(e) => write!(f, "{e}"),
+ Self::Nix(e) => write!(f, "{e}"),
#[cfg(feature = "async")]
Self::Unsplit(..) => {
write!(f, "unsplit called on halves of two different ptys")