1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-02 11:11:04 +02:00

style: fix 1.67 clippy warnings

This commit is contained in:
Jake Stanger 2023-01-28 14:40:31 +00:00
parent 90cd078973
commit eb30105fc2
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
6 changed files with 19 additions and 24 deletions

View file

@ -38,7 +38,7 @@ impl From<&str> for ScriptMode {
"watch" | "w" => Self::Watch,
_ => {
warn!("Invalid script mode: '{str}', falling back to polling");
ScriptMode::Poll
Self::Poll
}
}
}
@ -56,8 +56,8 @@ impl Display for ScriptMode {
f,
"{}",
match self {
ScriptMode::Poll => "poll",
ScriptMode::Watch => "watch",
Self::Poll => "poll",
Self::Watch => "watch",
}
)
}