Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ... ---------
Showing the changes to crates/multi_buffer/src/multi_buffer.rs (1 of 68 files). Show all
Unified · Split
| @@ -6896,7 +6896,7 @@ impl<'a> sum_tree::Dimension<'a, ExcerptSummary> for ExcerptOffset { · 6895 unmodified lines | ||
| 6896 | 6896 | } |
| 6897 | 6897 | } |
| 6898 | 6898 | |
| 6899 | −impl<'a> sum_tree::SeekTarget<'a, ExcerptSummary, ExcerptSummary> for ExcerptOffset { | |
| 6899 | +impl sum_tree::SeekTarget<'_, ExcerptSummary, ExcerptSummary> for ExcerptOffset { | |
| 6900 | 6900 | fn cmp(&self, cursor_location: &ExcerptSummary, _: &()) -> cmp::Ordering { |
| 6901 | 6901 | Ord::cmp(&self.value, &cursor_location.text.len) |
| 6902 | 6902 | } |
| @@ -6908,7 +6908,7 @@ impl<'a> sum_tree::SeekTarget<'a, ExcerptSummary, Option<&'a Locator>> for Locat · 5 unmodified lines | ||
| 6908 | 6908 | } |
| 6909 | 6909 | } |
| 6910 | 6910 | |
| 6911 | −impl<'a> sum_tree::SeekTarget<'a, ExcerptSummary, ExcerptSummary> for Locator { | |
| 6911 | +impl sum_tree::SeekTarget<'_, ExcerptSummary, ExcerptSummary> for Locator { | |
| 6912 | 6912 | fn cmp(&self, cursor_location: &ExcerptSummary, _: &()) -> cmp::Ordering { |
| 6913 | 6913 | Ord::cmp(self, &cursor_location.excerpt_locator) |
| 6914 | 6914 | } |
| @@ -6982,16 +6982,16 @@ impl<'a> sum_tree::Dimension<'a, DiffTransformSummary> for ExcerptPoint { · 67 unmodified lines | ||
| 6982 | 6982 | } |
| 6983 | 6983 | } |
| 6984 | 6984 | |
| 6985 | −impl<'a, D: TextDimension + Ord> | |
| 6986 | − sum_tree::SeekTarget<'a, DiffTransformSummary, DiffTransformSummary> for ExcerptDimension<D> | |
| 6985 | +impl<D: TextDimension + Ord> sum_tree::SeekTarget<'_, DiffTransformSummary, DiffTransformSummary> | |
| 6986 | + for ExcerptDimension<D> | |
| 6987 | 6987 | { |
| 6988 | 6988 | fn cmp(&self, cursor_location: &DiffTransformSummary, _: &()) -> cmp::Ordering { |
| 6989 | 6989 | Ord::cmp(&self.0, &D::from_text_summary(&cursor_location.input)) |
| 6990 | 6990 | } |
| 6991 | 6991 | } |
| 6992 | 6992 | |
| 6993 | −impl<'a, D: TextDimension + Ord> | |
| 6994 | − sum_tree::SeekTarget<'a, DiffTransformSummary, (OutputDimension<D>, ExcerptDimension<D>)> | |
| 6993 | +impl<D: TextDimension + Ord> | |
| 6994 | + sum_tree::SeekTarget<'_, DiffTransformSummary, (OutputDimension<D>, ExcerptDimension<D>)> | |
| 6995 | 6995 | for ExcerptDimension<D> |
| 6996 | 6996 | { |
| 6997 | 6997 | fn cmp( |
| @@ -7053,14 +7053,14 @@ impl<'a> sum_tree::Dimension<'a, DiffTransformSummary> for Point { · 55 unmodified lines | ||
| 7053 | 7053 | } |
| 7054 | 7054 | } |
| 7055 | 7055 | |
| 7056 | −impl<'a> MultiBufferRows<'a> { | |
| 7056 | +impl MultiBufferRows<'_> { | |
| 7057 | 7057 | pub fn seek(&mut self, MultiBufferRow(row): MultiBufferRow) { |
| 7058 | 7058 | self.point = Point::new(row, 0); |
| 7059 | 7059 | self.cursor.seek(&self.point); |
| 7060 | 7060 | } |
| 7061 | 7061 | } |
| 7062 | 7062 | |
| 7063 | −impl<'a> Iterator for MultiBufferRows<'a> { | |
| 7063 | +impl Iterator for MultiBufferRows<'_> { | |
| 7064 | 7064 | type Item = RowInfo; |
| 7065 | 7065 | |
| 7066 | 7066 | fn next(&mut self) -> Option<Self::Item> { |
| @@ -7304,7 +7304,7 @@ impl<'a> Iterator for MultiBufferChunks<'a> { · 237 unmodified lines | ||
| 7304 | 7304 | } |
| 7305 | 7305 | } |
| 7306 | 7306 | |
| 7307 | −impl<'a> MultiBufferBytes<'a> { | |
| 7307 | +impl MultiBufferBytes<'_> { | |
| 7308 | 7308 | fn consume(&mut self, len: usize) { |
| 7309 | 7309 | self.range.start += len; |
| 7310 | 7310 | self.chunk = &self.chunk[len..]; |
| @@ -7351,7 +7351,7 @@ impl<'a> Iterator for MultiBufferBytes<'a> { · 40 unmodified lines | ||
| 7351 | 7351 | } |
| 7352 | 7352 | } |
| 7353 | 7353 | |
| 7354 | −impl<'a> io::Read for MultiBufferBytes<'a> { | |
| 7354 | +impl io::Read for MultiBufferBytes<'_> { | |
| 7355 | 7355 | fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { |
| 7356 | 7356 | let len = cmp::min(buf.len(), self.chunk.len()); |
| 7357 | 7357 | buf[..len].copy_from_slice(&self.chunk[..len]); |
| @@ -7362,7 +7362,7 @@ impl<'a> io::Read for MultiBufferBytes<'a> { · 4 unmodified lines | ||
| 7362 | 7362 | } |
| 7363 | 7363 | } |
| 7364 | 7364 | |
| 7365 | −impl<'a> io::Read for ReversedMultiBufferBytes<'a> { | |
| 7365 | +impl io::Read for ReversedMultiBufferBytes<'_> { | |
| 7366 | 7366 | fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { |
| 7367 | 7367 | let len = cmp::min(buf.len(), self.chunk.len()); |
| 7368 | 7368 | buf[..len].copy_from_slice(&self.chunk[..len]); |