clippy: needless deref in docking targets; the tab strip trial drops the strip's output

This commit is contained in:
aiongg
2026-11-17 17:44:43 +00:00
parent cc958692f9
commit 081b62b056
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ impl DockSizes {
columns
.iter()
.zip(current.iter().zip(widths))
.filter(|(column, ((width, _), scaled))| !fixed(*column) && (scaled - width).abs() >= 0.01)
.filter(|(column, ((width, _), scaled))| !fixed(column) && (scaled - width).abs() >= 0.01)
.filter_map(|(column, (_, width))| {
let panel = column.groups.iter().find_map(|group| group.panels.first())?.clone();
Some(if column.iconic { Action::resize_iconic(panel, Some(width)) } else { Action::resize_column(panel, width) })
+1 -1
View File
@@ -331,7 +331,7 @@ fn panel_widths(room: f32) -> Vec<(&'static str, f32)> {
ui.set_max_width(room);
let keys = [0_usize, 1, 2, 3, 4, 5];
let source = keyed(&keys, |key: &usize| *key);
TabStrip::new("Panels").kind(TabKind::Panel).shown(1).show_items(ui, &source, &mut |key, _| Tab::new(PANELS[*key]));
let _ = TabStrip::new("Panels").kind(TabKind::Panel).shown(1).show_items(ui, &source, &mut |key, _| Tab::new(PANELS[*key]));
};
frames.idle(3, &mut show);
let tree = frames.tree();