mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
refactor: fix clippy warning
This commit is contained in:
parent
bd5bdf5af5
commit
1b853bcb71
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ fn create_button(
|
|||
tx: &Sender<String>,
|
||||
) -> Button {
|
||||
let button = Button::builder()
|
||||
.label(name_map.get(name).map(|str| str.as_str()).unwrap_or(name))
|
||||
.label(name_map.get(name).map_or(name, String::as_str))
|
||||
.build();
|
||||
|
||||
let style_context = button.style_context();
|
||||
|
|
Loading…
Add table
Reference in a new issue