Elide lifetimes
This commit is contained in:
@@ -93,7 +93,7 @@ impl Image {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Iterator for ImageRuns<'a> {
|
impl Iterator for ImageRuns<'_> {
|
||||||
type Item = Run;
|
type Item = Run;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
|
@@ -50,7 +50,7 @@ impl Tab {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> TabViewer for Tabs<'a> {
|
impl TabViewer for Tabs<'_> {
|
||||||
type Tab = Tab;
|
type Tab = Tab;
|
||||||
|
|
||||||
fn title(&mut self, tab: &mut Self::Tab) -> WidgetText {
|
fn title(&mut self, tab: &mut Self::Tab) -> WidgetText {
|
||||||
|
@@ -45,7 +45,7 @@ impl<'a> Iterator for SliceLayerIterator<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Drop for SliceLayerElement<'a> {
|
impl Drop for SliceLayerElement<'_> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
// SAFETY: it's not... But the idea is that each SliceLayerElement will
|
// 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
|
// 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;
|
type Target = GrayImage;
|
||||||
|
|
||||||
fn deref(&self) -> &Self::Target {
|
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 {
|
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||||
&mut self.image
|
&mut self.image
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl<'a> Send for SliceLayerElement<'a> {}
|
unsafe impl Send for SliceLayerElement<'_> {}
|
||||||
|
Reference in New Issue
Block a user