Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bluez-dev committed Apr 7, 2024
1 parent 519feaf commit 7d2124e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ impl App {
if is_ascending {
order = order.reverse();
}
return Some(order);
Some(order)
};

let name_order = info_a.name.to_lowercase().cmp(&info_b.name.to_lowercase());
Expand Down Expand Up @@ -1615,7 +1615,7 @@ impl App {
if sort_category != SortBy::Name {
order = order.then(name_order);
}
return order;
order
});
}
}
Expand Down Expand Up @@ -1993,9 +1993,9 @@ impl eframe::App for App {
let mut radio_label = category.as_str().to_owned();
if sort_category == category {
if is_ascending {
radio_label.push_str("⏶");
radio_label.push_str(" ⏶");
} else {
radio_label.push_str("⏷");
radio_label.push_str(" ⏷");
}
}
let resp = ui.radio_value(&mut sort_category, category, radio_label);
Expand Down

0 comments on commit 7d2124e

Please sign in to comment.