Fix 1 new Clippy warning

I don't like the other ones
This commit is contained in:
Ivan Molodetskikh
2026-04-18 08:17:44 +03:00
parent c814c656c5
commit 10995ec62c
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -150,6 +150,7 @@ dinit = []
[lints.clippy]
new_without_default = "allow"
collapsible_match = "allow"
[profile.release]
debug = "line-tables-only"
+1 -1
View File
@@ -193,7 +193,7 @@ pub fn handle_msg(mut msg: Msg, json: bool) -> anyhow::Result<()> {
return Ok(());
}
windows.sort_unstable_by(|a, b| a.id.cmp(&b.id));
windows.sort_unstable_by_key(|a| a.id);
for window in windows {
print_window(&window);
+1
View File
@@ -490,6 +490,7 @@ impl<W: LayoutElement> FloatingSpace<W> {
// Now, descendants is in back-to-front order, and repositioning them in the front-to-back
// order will preserve the subsequent indices and work out right.
let mut idx = idx;
#[allow(clippy::explicit_counter_loop)]
for descendant_idx in descendants.into_iter().rev() {
self.raise_window(descendant_idx, idx);
idx += 1;