1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 14:21:03 +02:00

refactor: couple of tiny changes

This commit is contained in:
Jake Stanger 2025-05-19 15:29:44 +01:00
parent 7b220cb2ae
commit 09ba3816d6
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 3 additions and 3 deletions

View file

@ -248,7 +248,7 @@ impl BindModeClient for Client {
self.add_listener::<swayipc_async::ModeEvent>(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()

View file

@ -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")
),
};