mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
apply clippy optimizations
This commit is contained in:
parent
8ec4b467ce
commit
5ae2c2327a
2 changed files with 3 additions and 9 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue