summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-06-21 19:13:12 +0100
committertcmal <me@aria.rip>2024-06-21 19:13:12 +0100
commit475253b7bcfd03a932c4b7efd969b3d2bf155035 (patch)
tree44789ce271d14c89cbff777e75f1e9ab6e1a5e64 /src/error.rs
parentc3e98e34ed7d42ef4271339de88f7131e7647442 (diff)
refactor connection-related stuff out, make things a bit cleaner
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}"),
}
}
}