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:
co-authored by
Julia Ryan
parent
73e5df6445
commit
6b239c3a9a
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user