mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 08:23:03 +00:00
clippy: needless deref in docking targets; the tab strip trial drops the strip's output
This commit is contained in:
@@ -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) })
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user