mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Update MSRV from 1.92 to 1.95 (#8348)
No particular reason --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -512,8 +512,7 @@ fn points_from_line(
|
||||
shapes: &mut Vec<Shape>,
|
||||
) {
|
||||
let mut position_on_segment = 0.0;
|
||||
for window in path.windows(2) {
|
||||
let (start, end) = (window[0], window[1]);
|
||||
for &[start, end] in path.array_windows() {
|
||||
let vector = end - start;
|
||||
let segment_length = vector.length();
|
||||
while position_on_segment < segment_length {
|
||||
@@ -545,8 +544,7 @@ fn dashes_from_line(
|
||||
let mut drawing_dash = false;
|
||||
let mut step = 0;
|
||||
let steps = dash_lengths.len();
|
||||
for window in path.windows(2) {
|
||||
let (start, end) = (window[0], window[1]);
|
||||
for &[start, end] in path.array_windows() {
|
||||
let vector = end - start;
|
||||
let segment_length = vector.length();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user