1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-09-16 11:46:58 +02:00

refactor: fix some strict clippy warnings

This commit is contained in:
Jake Stanger 2025-05-25 12:14:24 +01:00
commit ca524f19f6
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
13 changed files with 28 additions and 33 deletions

View file

@ -18,12 +18,11 @@ pub fn handle_command(command: IronvarCommand) -> Response {
if key.contains('.') {
for part in key.split('.') {
ns = match ns.get_namespace(part) {
Some(ns) => ns.clone(),
None => {
key = part.into();
break;
}
ns = if let Some(ns) = ns.get_namespace(part) {
ns.clone()
} else {
key = part.into();
break;
};
}
}