chore: Fix warnings for Rust 1.89 (#32378)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
@@ -53,7 +53,7 @@ impl Chunk {
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn as_slice(&self) -> ChunkSlice {
|
||||
pub fn as_slice(&self) -> ChunkSlice<'_> {
|
||||
ChunkSlice {
|
||||
chars: self.chars,
|
||||
chars_utf16: self.chars_utf16,
|
||||
@@ -64,7 +64,7 @@ impl Chunk {
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn slice(&self, range: Range<usize>) -> ChunkSlice {
|
||||
pub fn slice(&self, range: Range<usize>) -> ChunkSlice<'_> {
|
||||
self.as_slice().slice(range)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user