Resolve unused '#[allow(clippy::needless_range_loop)]' error supressions

This commit is contained in:
Dr. Dystopia 2021-07-24 20:22:05 +02:00
parent f039321cd7
commit db48e30ea1
2 changed files with 0 additions and 2 deletions

View File

@ -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,

View File

@ -226,7 +226,6 @@ fn calc_light<V: RectRasterableVol<Vox = Block> + 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<Vox = Block> + ReadVol + Debug + 'static>(
vol: &'a VolGrid2d<V>,
(range, max_texture_size, _boi): (Aabb<i32>, Vec2<u16>, &'a BlocksOfInterest),