apply clippy optimizations

This commit is contained in:
yggverse 2024-12-05 16:46:44 +02:00
parent 8ec4b467ce
commit 5ae2c2327a
2 changed files with 3 additions and 9 deletions

View file

@ -37,13 +37,7 @@ impl Item {
)
.property("title", title)
.property("subtitle", subtitle)
.property(
"tooltip",
match tooltip {
Some(text) => text,
None => "", // NULL
},
)
.property("tooltip", tooltip.unwrap_or_default())
.property("is_active", is_active)
.build()
}