aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-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")