summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/error.rs b/src/error.rs
index dcbcfe9..d0253af 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -27,11 +27,11 @@ impl std::error::Error for Error {}
impl Display for Error {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self {
- Error::NoSuchScreen => write!(f, "xcb returned a screen that doesn't exist"),
- Error::OtherWMRunning => write!(f, "another window manager is running"),
- Error::Xcb(e) => write!(f, "generic xcb error: {}", e),
- Error::Connection(e) => write!(f, "connection error: {}", e),
- Error::Protocol(e) => write!(f, "protocol error: {}", e),
+ Self::NoSuchScreen => write!(f, "xcb returned a screen that doesn't exist"),
+ Self::OtherWMRunning => write!(f, "another window manager is running"),
+ Self::Xcb(e) => write!(f, "generic xcb error: {e}"),
+ Self::Connection(e) => write!(f, "connection error: {e}"),
+ Self::Protocol(e) => write!(f, "protocol error: {e}"),
}
}
}