[librsvg: 12/16] clippy: remove unused lifetimes
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 12/16] clippy: remove unused lifetimes
- Date: Fri, 16 Sep 2022 01:46:19 +0000 (UTC)
commit 60304c219d03bea35d47bb31fd07dc29752a79c6
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Sep 15 19:23:41 2022 -0500
clippy: remove unused lifetimes
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/747>
src/surface_utils/mod.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/surface_utils/mod.rs b/src/surface_utils/mod.rs
index bdec0f858..8529bf680 100644
--- a/src/surface_utils/mod.rs
+++ b/src/surface_utils/mod.rs
@@ -271,7 +271,7 @@ impl<'a> ImageSurfaceDataExt for cairo::ImageSurfaceData<'a> {
this.set_pixel(stride, pixel, x, y);
}
}
-impl<'a> ImageSurfaceDataExt for [u8] {
+impl ImageSurfaceDataExt for [u8] {
#[inline]
fn set_pixel(&mut self, stride: usize, pixel: Pixel, x: u32, y: u32) {
use byteorder::{NativeEndian, WriteBytesExt};
@@ -280,7 +280,7 @@ impl<'a> ImageSurfaceDataExt for [u8] {
.expect("out of bounds pixel access on [u8]");
}
}
-impl<'a> ImageSurfaceDataExt for [u32] {
+impl ImageSurfaceDataExt for [u32] {
#[inline]
fn set_pixel(&mut self, stride: usize, pixel: Pixel, x: u32, y: u32) {
self[(y as usize * stride + x as usize * 4) / 4] = pixel.to_u32();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]