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:
@@ -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));
|
||||
|
||||
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user