diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-02-05 14:16:41 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-02-05 14:16:41 -0500 |
commit | 9656f9f0382e508c4e9d35f160a7a9e6923f66f3 (patch) | |
tree | 543a0b1421e1a0a5be869cb8a6329942354f7b11 /src | |
parent | 2fba99a5b7db0eab54febaecf57a4adb4b9046b6 (diff) | |
download | pty-process-9656f9f0382e508c4e9d35f160a7a9e6923f66f3.tar.gz pty-process-9656f9f0382e508c4e9d35f160a7a9e6923f66f3.zip |
clippy
Diffstat (limited to 'src')
-rw-r--r-- | src/error.rs | 4 |
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") |