1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 12:50:04 -04:00

Update MSRV to Rust 1.72 (#3595)

Required to update to puffin 0.18
This commit is contained in:
Emil Ernerfeldt
2023-11-21 17:26:35 +01:00
committed by GitHub
parent 7abf8afd16
commit bfadb90d42
48 changed files with 206 additions and 190 deletions

View File

@@ -1855,7 +1855,7 @@ where
.into_iter()
.enumerate()
.map(|(index, bar)| {
let bar_rect: Rect = transform.rect_from_values(&bar.bounds_min(), &bar.bounds_max());
let bar_rect = transform.rect_from_values(&bar.bounds_min(), &bar.bounds_max());
let dist_sq = bar_rect.distance_sq_to_pos(point);
ClosestElem { index, dist_sq }

View File

@@ -245,8 +245,7 @@ impl PlotPoints {
(0..points)
.map(|i| {
let t = start + i as f64 * increment;
let (x, y) = function(t);
[x, y]
function(t).into()
})
.collect()
}

View File

@@ -1845,7 +1845,7 @@ impl PreparedPlot {
return Vec::new();
}
let interact_radius_sq: f32 = (16.0f32).powi(2);
let interact_radius_sq = (16.0_f32).powi(2);
let candidates = items.iter().filter_map(|item| {
let item = &**item;