mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +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
|
@ -80,7 +80,7 @@ impl Namespace for VariableManager {
|
|||
let namespaces = read_lock!(self.namespaces);
|
||||
let ns = namespaces.get(ns)?;
|
||||
|
||||
ns.get(key).map(|v| v.to_owned())
|
||||
ns.get(key).as_deref().map(ToOwned::to_owned)
|
||||
} else {
|
||||
read_lock!(self.variables).get(key).and_then(IronVar::get)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue