Elide lifetimes

This commit is contained in:
Connor Slade
2025-02-08 13:33:22 -05:00
parent 9c0bc437e0
commit 738a22bce5
3 changed files with 6 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ impl Image {
}
}
impl<'a> Iterator for ImageRuns<'a> {
impl Iterator for ImageRuns<'_> {
type Item = Run;
fn next(&mut self) -> Option<Self::Item> {

View File

@@ -50,7 +50,7 @@ impl Tab {
}
}
impl<'a> TabViewer for Tabs<'a> {
impl TabViewer for Tabs<'_> {
type Tab = Tab;
fn title(&mut self, tab: &mut Self::Tab) -> WidgetText {

View File

@@ -45,7 +45,7 @@ impl<'a> Iterator for SliceLayerIterator<'a> {
}
}
impl<'a> Drop for SliceLayerElement<'a> {
impl Drop for SliceLayerElement<'_> {
fn drop(&mut self) {
// SAFETY: it's not... But the idea is that each SliceLayerElement will
// only be writing to one layer each, meaning the same memory will only
@@ -55,7 +55,7 @@ impl<'a> Drop for SliceLayerElement<'a> {
}
}
impl<'a> Deref for SliceLayerElement<'a> {
impl Deref for SliceLayerElement<'_> {
type Target = GrayImage;
fn deref(&self) -> &Self::Target {
@@ -63,10 +63,10 @@ impl<'a> Deref for SliceLayerElement<'a> {
}
}
impl<'a> DerefMut for SliceLayerElement<'a> {
impl DerefMut for SliceLayerElement<'_> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.image
}
}
unsafe impl<'a> Send for SliceLayerElement<'a> {}
unsafe impl Send for SliceLayerElement<'_> {}