mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Resolve unused '#[allow(clippy::needless_range_loop)]' error supressions
This commit is contained in:
parent
f039321cd7
commit
db48e30ea1
@ -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,
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user