From c9e9c70ce79cfb760f42e81dbbc1e7bd91e8403c Mon Sep 17 00:00:00 2001 From: GrandmasterB42 Date: Fri, 20 Sep 2024 14:04:43 +0200 Subject: [PATCH] clippy pedantic + extra todo item --- README.md | 1 + src/main.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f0007a..018576c 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,4 @@ - denoising - importance sampling - integrating with more bevy features +- CI diff --git a/src/main.rs b/src/main.rs index 0cb41d7..3197076 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,7 @@ +//#![warn(clippy::pedantic)] +#![allow(clippy::type_complexity)] +#![allow(clippy::too_many_lines)] + use bevy::prelude::*; use bevy_flycam::{FlyCam, NoCameraPlayerPlugin}; use bevy_inspector_egui::quick::WorldInspectorPlugin; @@ -250,7 +254,7 @@ fn modify_raycast_backend(mut settings: ResMut) { fn sync_picking_radius( mut sync_items: Query<(&RaytracedSphere, &mut Transform), Changed>, ) { - for (sphere, mut transform) in sync_items.iter_mut() { + for (sphere, mut transform) in &mut sync_items { transform.scale = Vec3::splat(sphere.radius); } }