Bump Rust to 1.91.1 (#42561)

Release Notes:

- N/A

---------

Co-authored-by: Julia Ryan <juliaryan3.14@gmail.com>
This commit is contained in:
Piotr Osiewicz
2025-11-12 20:27:04 +00:00
committed by GitHub
co-authored by Julia Ryan
parent 73e5df6445
commit 6b239c3a9a
12 changed files with 39 additions and 85 deletions
+6 -8
View File
@@ -2,11 +2,15 @@ use crate::{Anchor, BufferSnapshot, TextDimension};
use std::cmp::Ordering;
use std::ops::Range;
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Default, Copy, Clone, Debug, PartialEq)]
pub enum SelectionGoal {
#[default]
None,
HorizontalPosition(f64),
HorizontalRange { start: f64, end: f64 },
HorizontalRange {
start: f64,
end: f64,
},
WrappedHorizontalPosition((u32, f32)),
}
@@ -19,12 +23,6 @@ pub struct Selection<T> {
pub goal: SelectionGoal,
}
impl Default for SelectionGoal {
fn default() -> Self {
Self::None
}
}
impl<T: Clone> Selection<T> {
/// A place where the selection had stopped at.
pub fn head(&self) -> T {