Rust 1.85 (#25272)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ... --------- Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
parent
fc52b43159
commit
e4e758db3a
68 changed files with 180 additions and 190 deletions
|
@ -81,7 +81,7 @@ impl Summary for OperationSummary {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Add<&'a Self> for OperationSummary {
|
||||
impl Add<&Self> for OperationSummary {
|
||||
type Output = Self;
|
||||
|
||||
fn add(self, other: &Self) -> Self {
|
||||
|
@ -93,7 +93,7 @@ impl<'a> Add<&'a Self> for OperationSummary {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Dimension<'a, OperationSummary> for OperationKey {
|
||||
impl Dimension<'_, OperationSummary> for OperationKey {
|
||||
fn zero(_cx: &()) -> Self {
|
||||
Default::default()
|
||||
}
|
||||
|
|
|
@ -2533,7 +2533,7 @@ impl<'a> RopeBuilder<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, D: TextDimension + Ord, F: FnMut(&FragmentSummary) -> bool> Iterator for Edits<'a, D, F> {
|
||||
impl<D: TextDimension + Ord, F: FnMut(&FragmentSummary) -> bool> Iterator for Edits<'_, D, F> {
|
||||
type Item = (Edit<D>, Range<Anchor>);
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
|
@ -2801,7 +2801,7 @@ impl ops::Sub for FullOffset {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> sum_tree::Dimension<'a, FragmentSummary> for usize {
|
||||
impl sum_tree::Dimension<'_, FragmentSummary> for usize {
|
||||
fn zero(_: &Option<clock::Global>) -> Self {
|
||||
Default::default()
|
||||
}
|
||||
|
@ -2811,7 +2811,7 @@ impl<'a> sum_tree::Dimension<'a, FragmentSummary> for usize {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> sum_tree::Dimension<'a, FragmentSummary> for FullOffset {
|
||||
impl sum_tree::Dimension<'_, FragmentSummary> for FullOffset {
|
||||
fn zero(_: &Option<clock::Global>) -> Self {
|
||||
Default::default()
|
||||
}
|
||||
|
@ -2831,7 +2831,7 @@ impl<'a> sum_tree::Dimension<'a, FragmentSummary> for Option<&'a Locator> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> sum_tree::SeekTarget<'a, FragmentSummary, FragmentTextSummary> for usize {
|
||||
impl sum_tree::SeekTarget<'_, FragmentSummary, FragmentTextSummary> for usize {
|
||||
fn cmp(
|
||||
&self,
|
||||
cursor_location: &FragmentTextSummary,
|
||||
|
@ -2880,7 +2880,7 @@ impl<'a> sum_tree::Dimension<'a, FragmentSummary> for VersionedFullOffset {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> sum_tree::SeekTarget<'a, FragmentSummary, Self> for VersionedFullOffset {
|
||||
impl sum_tree::SeekTarget<'_, FragmentSummary, Self> for VersionedFullOffset {
|
||||
fn cmp(&self, cursor_position: &Self, _: &Option<clock::Global>) -> cmp::Ordering {
|
||||
match (self, cursor_position) {
|
||||
(Self::Offset(a), Self::Offset(b)) => Ord::cmp(a, b),
|
||||
|
@ -2952,7 +2952,7 @@ impl ToOffset for Anchor {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, T: ToOffset> ToOffset for &'a T {
|
||||
impl<T: ToOffset> ToOffset for &T {
|
||||
fn to_offset(&self, content: &BufferSnapshot) -> usize {
|
||||
(*self).to_offset(content)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue