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:
parent
bd9b3af5bc
commit
ca524f19f6
13 changed files with 28 additions and 33 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue