From 2044cea13148cfd8e2878b9709e4fcb451550b95 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Sat, 24 Jul 2021 20:22:05 +0200 Subject: [PATCH] Resolve unused '#[allow(clippy::needless_range_loop)]' error supressions --- common/state/src/plugin/module.rs | 1 - voxygen/src/mesh/terrain.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/common/state/src/plugin/module.rs b/common/state/src/plugin/module.rs index 933de37a18..cf4322a578 100644 --- a/common/state/src/plugin/module.rs +++ b/common/state/src/plugin/module.rs @@ -177,7 +177,6 @@ pub fn from_i64(i: i64) -> u64 { u64::from_le_bytes(i.to_le_bytes()) } // This function is not public because this function should not be used without // an interface to limit unsafe behaviours -#[allow(clippy::needless_range_loop)] fn execute_raw( module: &PluginModule, instance: &mut Instance, diff --git a/voxygen/src/mesh/terrain.rs b/voxygen/src/mesh/terrain.rs index de5e59face..faff76a791 100644 --- a/voxygen/src/mesh/terrain.rs +++ b/voxygen/src/mesh/terrain.rs @@ -226,7 +226,6 @@ fn calc_light + ReadVol + Debug>( #[allow(clippy::many_single_char_names)] #[allow(clippy::type_complexity)] -#[allow(clippy::needless_range_loop)] // TODO: Pending review in #587 pub fn generate_mesh<'a, V: RectRasterableVol + ReadVol + Debug + 'static>( vol: &'a VolGrid2d, (range, max_texture_size, _boi): (Aabb, Vec2, &'a BlocksOfInterest),