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
|
@ -6896,7 +6896,7 @@ impl<'a> sum_tree::Dimension<'a, ExcerptSummary> for ExcerptOffset {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> sum_tree::SeekTarget<'a, ExcerptSummary, ExcerptSummary> for ExcerptOffset {
|
||||
impl sum_tree::SeekTarget<'_, ExcerptSummary, ExcerptSummary> for ExcerptOffset {
|
||||
fn cmp(&self, cursor_location: &ExcerptSummary, _: &()) -> cmp::Ordering {
|
||||
Ord::cmp(&self.value, &cursor_location.text.len)
|
||||
}
|
||||
|
@ -6908,7 +6908,7 @@ impl<'a> sum_tree::SeekTarget<'a, ExcerptSummary, Option<&'a Locator>> for Locat
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> sum_tree::SeekTarget<'a, ExcerptSummary, ExcerptSummary> for Locator {
|
||||
impl sum_tree::SeekTarget<'_, ExcerptSummary, ExcerptSummary> for Locator {
|
||||
fn cmp(&self, cursor_location: &ExcerptSummary, _: &()) -> cmp::Ordering {
|
||||
Ord::cmp(self, &cursor_location.excerpt_locator)
|
||||
}
|
||||
|
@ -6982,16 +6982,16 @@ impl<'a> sum_tree::Dimension<'a, DiffTransformSummary> for ExcerptPoint {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, D: TextDimension + Ord>
|
||||
sum_tree::SeekTarget<'a, DiffTransformSummary, DiffTransformSummary> for ExcerptDimension<D>
|
||||
impl<D: TextDimension + Ord> sum_tree::SeekTarget<'_, DiffTransformSummary, DiffTransformSummary>
|
||||
for ExcerptDimension<D>
|
||||
{
|
||||
fn cmp(&self, cursor_location: &DiffTransformSummary, _: &()) -> cmp::Ordering {
|
||||
Ord::cmp(&self.0, &D::from_text_summary(&cursor_location.input))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, D: TextDimension + Ord>
|
||||
sum_tree::SeekTarget<'a, DiffTransformSummary, (OutputDimension<D>, ExcerptDimension<D>)>
|
||||
impl<D: TextDimension + Ord>
|
||||
sum_tree::SeekTarget<'_, DiffTransformSummary, (OutputDimension<D>, ExcerptDimension<D>)>
|
||||
for ExcerptDimension<D>
|
||||
{
|
||||
fn cmp(
|
||||
|
@ -7053,14 +7053,14 @@ impl<'a> sum_tree::Dimension<'a, DiffTransformSummary> for Point {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> MultiBufferRows<'a> {
|
||||
impl MultiBufferRows<'_> {
|
||||
pub fn seek(&mut self, MultiBufferRow(row): MultiBufferRow) {
|
||||
self.point = Point::new(row, 0);
|
||||
self.cursor.seek(&self.point);
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Iterator for MultiBufferRows<'a> {
|
||||
impl Iterator for MultiBufferRows<'_> {
|
||||
type Item = RowInfo;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
|
@ -7304,7 +7304,7 @@ impl<'a> Iterator for MultiBufferChunks<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> MultiBufferBytes<'a> {
|
||||
impl MultiBufferBytes<'_> {
|
||||
fn consume(&mut self, len: usize) {
|
||||
self.range.start += len;
|
||||
self.chunk = &self.chunk[len..];
|
||||
|
@ -7351,7 +7351,7 @@ impl<'a> Iterator for MultiBufferBytes<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> io::Read for MultiBufferBytes<'a> {
|
||||
impl io::Read for MultiBufferBytes<'_> {
|
||||
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
|
||||
let len = cmp::min(buf.len(), self.chunk.len());
|
||||
buf[..len].copy_from_slice(&self.chunk[..len]);
|
||||
|
@ -7362,7 +7362,7 @@ impl<'a> io::Read for MultiBufferBytes<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> io::Read for ReversedMultiBufferBytes<'a> {
|
||||
impl io::Read for ReversedMultiBufferBytes<'_> {
|
||||
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
|
||||
let len = cmp::min(buf.len(), self.chunk.len());
|
||||
buf[..len].copy_from_slice(&self.chunk[..len]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue