1
0
Fork 0
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:
Jake Stanger 2025-05-25 12:14:24 +01:00
parent bd9b3af5bc
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

@ -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)
}