1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Remove impl Into<f32> arguments (#8194)

* Closes https://github.com/emilk/egui/issues/8179
This commit is contained in:
Emil Ernerfeldt
2026-05-25 10:59:03 +02:00
committed by GitHub
parent 67322e3ebf
commit 46c20810ba
9 changed files with 18 additions and 26 deletions

View File

@@ -418,7 +418,7 @@ mod tests {
if name == "Bézier Curve" {
// The Bézier Curve demo needs a threshold of 2.1 to pass on linux:
options = options.threshold(OsThreshold::new(0.0).linux(2.1));
options = options.threshold(OsThreshold::new(0.0_f32).linux(2.1));
}
results.add(harness.try_snapshot_options(format!("demos/{name}"), &options));

View File

@@ -16,7 +16,7 @@ impl Default for DragAndDropDemo {
vec!["Item H", "Item I", "Item J", "Item K"],
]
.into_iter()
.map(|v| v.into_iter().map(ToString::to_string).collect())
.map(|v| v.into_iter().map(str::to_owned).collect())
.collect(),
}
}

View File

@@ -45,7 +45,7 @@ impl crate::View for SceneDemo {
});
ui.separator();
ui.label(format!("Scene rect: {:#?}", &mut self.scene_rect));
ui.label(format!("Scene rect: {:#?}", self.scene_rect));
ui.separator();