diff --git a/src/clients/compositor/sway.rs b/src/clients/compositor/sway.rs index 3fcb1f3..b94dba4 100644 --- a/src/clients/compositor/sway.rs +++ b/src/clients/compositor/sway.rs @@ -248,7 +248,7 @@ impl BindModeClient for Client { self.add_listener::(move |mode| { tracing::trace!("mode: {:?}", mode); - // when no bindind is active the bindmode is named "default", but we must display + // when no binding is active the bindmode is named "default", but we must display // nothing in this case. let name = if mode.change == "default" { String::new() diff --git a/src/clients/wayland/wlr_data_control/mod.rs b/src/clients/wayland/wlr_data_control/mod.rs index b2245a4..7658f69 100644 --- a/src/clients/wayland/wlr_data_control/mod.rs +++ b/src/clients/wayland/wlr_data_control/mod.rs @@ -21,7 +21,7 @@ use smithay_client_toolkit::data_device_manager::WritePipe; use std::cmp::min; use std::fmt::{Debug, Formatter}; use std::fs::File; -use std::io::{ErrorKind, Write}; +use std::io::Write; use std::os::fd::{AsFd, BorrowedFd, OwnedFd}; use std::sync::Arc; use std::time::Duration; @@ -297,7 +297,7 @@ impl DataControlSourceHandler for Environment { ClipboardValue::Image(bytes) => bytes.as_ref(), ClipboardValue::Other => panic!( "{:?}", - io::Error::new(ErrorKind::Other, "Attempted to copy unsupported mime type") + io::Error::other("Attempted to copy unsupported mime type") ), };