mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Clippy
This commit is contained in:
@@ -332,10 +332,7 @@ mod id_source {
|
||||
let nested = Id::new(parent).with(child);
|
||||
|
||||
assert_eq!(format!("{parent:?}"), r#"9DE0 ("parent")"#);
|
||||
assert_eq!(
|
||||
format!("{child:?}"),
|
||||
r#"F27D ("child") <- 9DE0 ("parent")"#
|
||||
);
|
||||
assert_eq!(format!("{child:?}"), r#"F27D ("child") <- 9DE0 ("parent")"#);
|
||||
assert_eq!(
|
||||
format!("{nested:?}"),
|
||||
r#"A8BE(F27D ("child") <- 9DE0 ("parent")) <- B20C(9DE0 ("parent"))"#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use egui::{include_image, Id, Modifiers, ScrollArea, Vec2};
|
||||
use egui::{Id, Modifiers, ScrollArea, Vec2, include_image};
|
||||
use egui_kittest::{Harness, SnapshotResults};
|
||||
use kittest::Queryable as _;
|
||||
|
||||
@@ -197,12 +197,13 @@ fn test_id_popup() {
|
||||
id.ui(ui);
|
||||
});
|
||||
|
||||
|
||||
harness.get_by_label_contains(&id.short_debug_format()).hover();
|
||||
harness
|
||||
.get_by_label_contains(&id.short_debug_format())
|
||||
.hover();
|
||||
harness.run();
|
||||
harness.fit_contents();
|
||||
|
||||
results.add(harness.try_snapshot(format!("id_popup_{}", idx)));
|
||||
results.add(harness.try_snapshot(format!("id_popup_{idx}")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user