mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: couple of tiny changes
This commit is contained in:
parent
7b220cb2ae
commit
09ba3816d6
2 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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")
|
||||
),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue