Skip to content

Commit 09ba381

Browse files
committed
refactor: couple of tiny changes
1 parent 7b220cb commit 09ba381

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/clients/compositor/sway.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl BindModeClient for Client {
248248
self.add_listener::<swayipc_async::ModeEvent>(move |mode| {
249249
tracing::trace!("mode: {:?}", mode);
250250

251-
// when no bindind is active the bindmode is named "default", but we must display
251+
// when no binding is active the bindmode is named "default", but we must display
252252
// nothing in this case.
253253
let name = if mode.change == "default" {
254254
String::new()

src/clients/wayland/wlr_data_control/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use smithay_client_toolkit::data_device_manager::WritePipe;
2121
use std::cmp::min;
2222
use std::fmt::{Debug, Formatter};
2323
use std::fs::File;
24-
use std::io::{ErrorKind, Write};
24+
use std::io::Write;
2525
use std::os::fd::{AsFd, BorrowedFd, OwnedFd};
2626
use std::sync::Arc;
2727
use std::time::Duration;
@@ -297,7 +297,7 @@ impl DataControlSourceHandler for Environment {
297297
ClipboardValue::Image(bytes) => bytes.as_ref(),
298298
ClipboardValue::Other => panic!(
299299
"{:?}",
300-
io::Error::new(ErrorKind::Other, "Attempted to copy unsupported mime type")
300+
io::Error::other("Attempted to copy unsupported mime type")
301301
),
302302
};
303303

0 commit comments

Comments
 (0)