treewide: clippy fixes

Fix all clippy warnings as of Rust 1.83.0.
This commit is contained in:
Matthias Schiffer 2024-12-17 00:23:57 +01:00
parent 2156bff59a
commit 4933d8e15f
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
7 changed files with 16 additions and 16 deletions

View file

@ -74,7 +74,7 @@ impl<'a, P> MapMerger<'a, P> {
}
}
impl<'a, P: image::PixelWithColorType> TileMerger for MapMerger<'a, P>
impl<P: image::PixelWithColorType> TileMerger for MapMerger<'_, P>
where
[P::Subpixel]: image::EncodableLayout,
image::ImageBuffer<P, Vec<P::Subpixel>>: Into<image::DynamicImage>,
@ -157,7 +157,7 @@ pub struct TileMipmapper<'a> {
regions: &'a [TileCoords],
}
impl<'a> TileCollector for TileMipmapper<'a> {
impl TileCollector for TileMipmapper<'_> {
type CollectOutput = MipmapStat;
fn tiles(&self) -> &[TileCoords] {