Cleanup instances of #[allow(clippy::type_complexity)]
(#17248)
# Objective I never realized `clippy::type_complexity` was an allowed lint - I've been assuming it'd generate a warning when performing my linting PRs. ## Solution Removes any instances of `#[allow(clippy::type_complexity)]` and `#[expect(clippy::type_complexity)]` ## Testing `cargo clippy` ran without errors or warnings.
This commit is contained in:
parent
71cd5f813e
commit
8e51b326b5
@ -2,7 +2,6 @@
|
|||||||
dead_code,
|
dead_code,
|
||||||
reason = "Many fields are unused/unread as they are just for benchmarking purposes."
|
reason = "Many fields are unused/unread as they are just for benchmarking purposes."
|
||||||
)]
|
)]
|
||||||
#![expect(clippy::type_complexity)]
|
|
||||||
|
|
||||||
use criterion::criterion_main;
|
use criterion::criterion_main;
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#![expect(clippy::type_complexity)]
|
|
||||||
|
|
||||||
use criterion::criterion_main;
|
use criterion::criterion_main;
|
||||||
|
|
||||||
mod function;
|
mod function;
|
||||||
|
@ -233,7 +233,6 @@ pub struct OrderIndependentTransparencySettingsOffset {
|
|||||||
/// This creates or resizes the oit buffers for each camera.
|
/// This creates or resizes the oit buffers for each camera.
|
||||||
/// It will always create one big buffer that's as big as the biggest buffer needed.
|
/// It will always create one big buffer that's as big as the biggest buffer needed.
|
||||||
/// Cameras with smaller viewports or less layers will simply use the big buffer and ignore the rest.
|
/// Cameras with smaller viewports or less layers will simply use the big buffer and ignore the rest.
|
||||||
#[allow(clippy::type_complexity)]
|
|
||||||
pub fn prepare_oit_buffers(
|
pub fn prepare_oit_buffers(
|
||||||
mut commands: Commands,
|
mut commands: Commands,
|
||||||
render_device: Res<RenderDevice>,
|
render_device: Res<RenderDevice>,
|
||||||
|
@ -146,7 +146,6 @@ pub enum TabNavigationError {
|
|||||||
/// An injectable helper object that provides tab navigation functionality.
|
/// An injectable helper object that provides tab navigation functionality.
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[derive(SystemParam)]
|
#[derive(SystemParam)]
|
||||||
#[allow(clippy::type_complexity)]
|
|
||||||
pub struct TabNavigation<'w, 's> {
|
pub struct TabNavigation<'w, 's> {
|
||||||
// Query for tab groups.
|
// Query for tab groups.
|
||||||
tabgroup_query: Query<'w, 's, (Entity, &'static TabGroup, &'static Children)>,
|
tabgroup_query: Query<'w, 's, (Entity, &'static TabGroup, &'static Children)>,
|
||||||
|
@ -127,7 +127,6 @@ fn global_color_changed(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Updates the wireframe material when the color in [`WireframeColor`] changes
|
/// Updates the wireframe material when the color in [`WireframeColor`] changes
|
||||||
#[allow(clippy::type_complexity)]
|
|
||||||
fn wireframe_color_changed(
|
fn wireframe_color_changed(
|
||||||
mut materials: ResMut<Assets<WireframeMaterial>>,
|
mut materials: ResMut<Assets<WireframeMaterial>>,
|
||||||
mut colors_changed: Query<
|
mut colors_changed: Query<
|
||||||
|
@ -124,10 +124,6 @@ fn global_color_changed(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Updates the wireframe material when the color in [`Wireframe2dColor`] changes
|
/// Updates the wireframe material when the color in [`Wireframe2dColor`] changes
|
||||||
#[expect(
|
|
||||||
clippy::type_complexity,
|
|
||||||
reason = "Can't be rewritten with less complex arguments."
|
|
||||||
)]
|
|
||||||
fn wireframe_color_changed(
|
fn wireframe_color_changed(
|
||||||
mut materials: ResMut<Assets<Wireframe2dMaterial>>,
|
mut materials: ResMut<Assets<Wireframe2dMaterial>>,
|
||||||
mut colors_changed: Query<
|
mut colors_changed: Query<
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
//! 3. [`PositionedGlyph`]s are stored in a [`TextLayoutInfo`],
|
//! 3. [`PositionedGlyph`]s are stored in a [`TextLayoutInfo`],
|
||||||
//! which contains all the information that downstream systems need for rendering.
|
//! which contains all the information that downstream systems need for rendering.
|
||||||
|
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
|
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
mod bounds;
|
mod bounds;
|
||||||
|
@ -181,7 +181,6 @@ fn set_camera_viewports(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::type_complexity)]
|
|
||||||
fn button_system(
|
fn button_system(
|
||||||
interaction_query: Query<
|
interaction_query: Query<
|
||||||
(&Interaction, &TargetCamera, &RotateCamera),
|
(&Interaction, &TargetCamera, &RotateCamera),
|
||||||
|
Loading…
Reference in New Issue
Block a user