mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-02 11:11:04 +02:00
refactor: fix new strict clippy warnings
This commit is contained in:
parent
d58d8952a8
commit
aaef3bf96c
8 changed files with 24 additions and 29 deletions
|
@ -50,12 +50,7 @@ pub fn load_css(style_path: PathBuf) {
|
|||
let mut watcher = recommended_watcher(move |res: Result<Event>| match res {
|
||||
Ok(event) if matches!(event.kind, EventKind::Modify(ModifyKind::Data(_))) => {
|
||||
debug!("{event:?}");
|
||||
if event
|
||||
.paths
|
||||
.first()
|
||||
.map(|p| p == &style_path2)
|
||||
.unwrap_or_default()
|
||||
{
|
||||
if event.paths.first().is_some_and(|p| p == &style_path2) {
|
||||
try_send!(tx, style_path2.clone());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue