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;
|
||||
|
||||
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;
|
||||
|
||||
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) {
|
||||
// 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<'_> {}
|
||||
|
Reference in New Issue
Block a user