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 2024-12-29 00:40:12 +00:00
parent 87a6523367
commit 5136637752
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
6 changed files with 51 additions and 60 deletions

View file

@ -155,7 +155,7 @@ fn reorder_workspaces(container: &gtk::Box, sort_order: SortOrder) {
let label = if sort_order == SortOrder::Label {
child
.downcast_ref::<gtk::Button>()
.and_then(|button| button.label())
.and_then(ButtonExt::label)
.unwrap_or_else(|| child.widget_name())
} else {
child.widget_name()