diff --git a/crates/bevy_a11y/src/lib.rs b/crates/bevy_a11y/src/lib.rs index 576b920f4183b0..4a1948c065ec75 100644 --- a/crates/bevy_a11y/src/lib.rs +++ b/crates/bevy_a11y/src/lib.rs @@ -1,7 +1,6 @@ //! Accessibility for Bevy #![warn(missing_docs)] -#![allow(clippy::type_complexity)] #![forbid(unsafe_code)] use std::sync::{ diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index b1c2ed7c5d26d0..0239442d393c51 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -1,7 +1,6 @@ //! Animation for the game engine Bevy #![warn(missing_docs)] -#![allow(clippy::type_complexity)] use std::ops::Deref; use std::time::Duration; diff --git a/crates/bevy_app/src/lib.rs b/crates/bevy_app/src/lib.rs index 3439620a466336..9aaabc25ee696c 100644 --- a/crates/bevy_app/src/lib.rs +++ b/crates/bevy_app/src/lib.rs @@ -1,7 +1,6 @@ //! This crate is about everything concerning the highest-level, application layer of a Bevy app. #![warn(missing_docs)] -#![allow(clippy::type_complexity)] mod app; mod main_schedule; diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs index 18da8603eecdaf..fcf4b09f19ba31 100644 --- a/crates/bevy_asset/src/lib.rs +++ b/crates/bevy_asset/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - pub mod io; pub mod meta; pub mod processor; diff --git a/crates/bevy_audio/src/lib.rs b/crates/bevy_audio/src/lib.rs index a2003a3b5967f4..3141632f612e08 100644 --- a/crates/bevy_audio/src/lib.rs +++ b/crates/bevy_audio/src/lib.rs @@ -21,7 +21,6 @@ //! ``` #![forbid(unsafe_code)] -#![allow(clippy::type_complexity)] #![warn(missing_docs)] mod audio; diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index e5682d3a92262a..c2187f1db01386 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -1,5 +1,5 @@ #![warn(missing_docs)] -#![allow(clippy::type_complexity)] + //! This crate provides core functionality for Bevy Engine. mod name; diff --git a/crates/bevy_core_pipeline/src/lib.rs b/crates/bevy_core_pipeline/src/lib.rs index 51e5ae36278e98..afe06ff08eadc4 100644 --- a/crates/bevy_core_pipeline/src/lib.rs +++ b/crates/bevy_core_pipeline/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - pub mod blit; pub mod bloom; pub mod clear_color; diff --git a/crates/bevy_derive/src/lib.rs b/crates/bevy_derive/src/lib.rs index 9030d8791ba71d..14ff66acb3b369 100644 --- a/crates/bevy_derive/src/lib.rs +++ b/crates/bevy_derive/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - extern crate proc_macro; mod app_plugin; diff --git a/crates/bevy_diagnostic/src/lib.rs b/crates/bevy_diagnostic/src/lib.rs index 0422df0cb43800..aaa0ea449ab34f 100644 --- a/crates/bevy_diagnostic/src/lib.rs +++ b/crates/bevy_diagnostic/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - mod diagnostic; mod entity_count_diagnostics_plugin; mod frame_time_diagnostics_plugin; diff --git a/crates/bevy_dylib/src/lib.rs b/crates/bevy_dylib/src/lib.rs index 2c5d6429676b55..a950f985d611a2 100644 --- a/crates/bevy_dylib/src/lib.rs +++ b/crates/bevy_dylib/src/lib.rs @@ -1,5 +1,4 @@ #![warn(missing_docs)] -#![allow(clippy::type_complexity)] #![allow(clippy::single_component_path_imports)] //! Forces dynamic linking of Bevy. diff --git a/crates/bevy_dynamic_plugin/src/lib.rs b/crates/bevy_dynamic_plugin/src/lib.rs index ee59ff2cb135a6..4ff6f926066657 100644 --- a/crates/bevy_dynamic_plugin/src/lib.rs +++ b/crates/bevy_dynamic_plugin/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - mod loader; pub use loader::*; diff --git a/crates/bevy_ecs/src/lib.rs b/crates/bevy_ecs/src/lib.rs index 06001b584dbdc5..f502c7fb34c3b9 100644 --- a/crates/bevy_ecs/src/lib.rs +++ b/crates/bevy_ecs/src/lib.rs @@ -1,6 +1,5 @@ #![warn(clippy::undocumented_unsafe_blocks)] #![warn(missing_docs)] -#![allow(clippy::type_complexity)] #![doc = include_str!("../README.md")] #[cfg(target_pointer_width = "16")] diff --git a/crates/bevy_ecs_compile_fail_tests/src/lib.rs b/crates/bevy_ecs_compile_fail_tests/src/lib.rs index e12684f7648c9c..d0d1683dd6b97c 100644 --- a/crates/bevy_ecs_compile_fail_tests/src/lib.rs +++ b/crates/bevy_ecs_compile_fail_tests/src/lib.rs @@ -1,3 +1 @@ -#![allow(clippy::type_complexity)] - // Nothing here, check out the integration tests diff --git a/crates/bevy_encase_derive/src/lib.rs b/crates/bevy_encase_derive/src/lib.rs index cc81b6edd52d09..d57be9f85c7c51 100644 --- a/crates/bevy_encase_derive/src/lib.rs +++ b/crates/bevy_encase_derive/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - use bevy_macro_utils::BevyManifest; use encase_derive_impl::{implement, syn}; diff --git a/crates/bevy_gilrs/src/lib.rs b/crates/bevy_gilrs/src/lib.rs index 1afcf515f66131..0c3f4fb0555d5d 100644 --- a/crates/bevy_gilrs/src/lib.rs +++ b/crates/bevy_gilrs/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - mod converter; mod gilrs_system; mod rumble; diff --git a/crates/bevy_gizmos/src/lib.rs b/crates/bevy_gizmos/src/lib.rs index 6ac015551781ce..b804a99bb6183a 100644 --- a/crates/bevy_gizmos/src/lib.rs +++ b/crates/bevy_gizmos/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] //! This crate adds an immediate mode drawing api to Bevy for visual debugging. diff --git a/crates/bevy_gltf/src/lib.rs b/crates/bevy_gltf/src/lib.rs index 559c8ae3c8e636..fe47fd4dfdd9f5 100644 --- a/crates/bevy_gltf/src/lib.rs +++ b/crates/bevy_gltf/src/lib.rs @@ -2,7 +2,7 @@ //! for loading glTF 2.0 (a standard 3D scene definition format) files in Bevy. //! //! The [glTF 2.0 specification](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html) defines the format of the glTF files. -#![allow(clippy::type_complexity)] + #![warn(missing_docs)] #[cfg(feature = "bevy_animation")] diff --git a/crates/bevy_hierarchy/src/lib.rs b/crates/bevy_hierarchy/src/lib.rs index d616e5384ae138..f156086b1a926a 100644 --- a/crates/bevy_hierarchy/src/lib.rs +++ b/crates/bevy_hierarchy/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] //! `bevy_hierarchy` can be used to define hierarchies of entities. //! diff --git a/crates/bevy_input/src/lib.rs b/crates/bevy_input/src/lib.rs index 7af8fec03add27..259b1623f153c0 100644 --- a/crates/bevy_input/src/lib.rs +++ b/crates/bevy_input/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] //! Input functionality for the [Bevy game engine](https://bevyengine.org/). diff --git a/crates/bevy_internal/src/lib.rs b/crates/bevy_internal/src/lib.rs index 8e6bf57e529093..42b368375a6e1f 100644 --- a/crates/bevy_internal/src/lib.rs +++ b/crates/bevy_internal/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] //! This module is separated into its own crate to enable simple dynamic linking for Bevy, and should not be used directly diff --git a/crates/bevy_log/src/lib.rs b/crates/bevy_log/src/lib.rs index a912d7d984b5c5..cc8d3e7a471007 100644 --- a/crates/bevy_log/src/lib.rs +++ b/crates/bevy_log/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] //! This crate provides logging functions and configuration for [Bevy](https://bevyengine.org) //! apps, and automatically configures platform specific log handlers (i.e. WASM or Android). diff --git a/crates/bevy_macro_utils/src/lib.rs b/crates/bevy_macro_utils/src/lib.rs index 2363d61cf0062e..d14a2c6db7eef3 100644 --- a/crates/bevy_macro_utils/src/lib.rs +++ b/crates/bevy_macro_utils/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] #![deny(unsafe_code)] //! A collection of helper types and functions for working on macros within the Bevy ecosystem. diff --git a/crates/bevy_math/src/lib.rs b/crates/bevy_math/src/lib.rs index b88de2e3a6dc9f..264659345b22e8 100644 --- a/crates/bevy_math/src/lib.rs +++ b/crates/bevy_math/src/lib.rs @@ -4,7 +4,6 @@ //! matrices like [`Mat2`], [`Mat3`] and [`Mat4`] and orientation representations //! like [`Quat`]. -#![allow(clippy::type_complexity)] #![warn(missing_docs)] mod affine3; diff --git a/crates/bevy_mikktspace/src/lib.rs b/crates/bevy_mikktspace/src/lib.rs index 365c2734800dba..89d7b05427407c 100644 --- a/crates/bevy_mikktspace/src/lib.rs +++ b/crates/bevy_mikktspace/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![allow(clippy::all)] use glam::{Vec2, Vec3}; diff --git a/crates/bevy_pbr/src/lib.rs b/crates/bevy_pbr/src/lib.rs index 228de223caa984..ba79b4302f2005 100644 --- a/crates/bevy_pbr/src/lib.rs +++ b/crates/bevy_pbr/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - pub mod wireframe; mod alpha; diff --git a/crates/bevy_ptr/src/lib.rs b/crates/bevy_ptr/src/lib.rs index f6212c505ba70d..7a98d53b9f0185 100644 --- a/crates/bevy_ptr/src/lib.rs +++ b/crates/bevy_ptr/src/lib.rs @@ -1,7 +1,6 @@ #![doc = include_str!("../README.md")] #![no_std] #![warn(missing_docs)] -#![allow(clippy::type_complexity)] use core::fmt::{self, Formatter, Pointer}; use core::{ diff --git a/crates/bevy_reflect/src/lib.rs b/crates/bevy_reflect/src/lib.rs index b8ba8da5dffddd..59bec372bb6475 100644 --- a/crates/bevy_reflect/src/lib.rs +++ b/crates/bevy_reflect/src/lib.rs @@ -464,7 +464,6 @@ //! [orphan rule]: https://doc.rust-lang.org/book/ch10-02-traits.html#implementing-a-trait-on-a-type:~:text=But%20we%20can%E2%80%99t,implementation%20to%20use. //! [`bevy_reflect_derive/documentation`]: bevy_reflect_derive //! [derive `Reflect`]: derive@crate::Reflect -#![allow(clippy::type_complexity)] mod array; mod fields; diff --git a/crates/bevy_render/src/lib.rs b/crates/bevy_render/src/lib.rs index 1709c0ea048c57..b507adeae91d2e 100644 --- a/crates/bevy_render/src/lib.rs +++ b/crates/bevy_render/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - #[cfg(target_pointer_width = "16")] compile_error!("bevy_render cannot compile for a 16-bit platform."); diff --git a/crates/bevy_scene/src/lib.rs b/crates/bevy_scene/src/lib.rs index 4ca3c303c30edb..70b97296b8e46d 100644 --- a/crates/bevy_scene/src/lib.rs +++ b/crates/bevy_scene/src/lib.rs @@ -4,7 +4,6 @@ //! instantiated or removed from a world to allow composition. Scenes can be serialized/deserialized, //! for example to save part of the world state to a file. -#![allow(clippy::type_complexity)] #![warn(missing_docs)] mod bundle; diff --git a/crates/bevy_sprite/src/lib.rs b/crates/bevy_sprite/src/lib.rs index 1eb3b1a5cc64cd..82a230864ee512 100644 --- a/crates/bevy_sprite/src/lib.rs +++ b/crates/bevy_sprite/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - mod bundle; mod dynamic_texture_atlas_builder; mod mesh2d; diff --git a/crates/bevy_tasks/src/lib.rs b/crates/bevy_tasks/src/lib.rs index d4b68e2096bc69..f3fef81ae5a0cc 100644 --- a/crates/bevy_tasks/src/lib.rs +++ b/crates/bevy_tasks/src/lib.rs @@ -1,5 +1,4 @@ #![warn(missing_docs)] -#![allow(clippy::type_complexity)] #![doc = include_str!("../README.md")] mod slice; diff --git a/crates/bevy_text/src/lib.rs b/crates/bevy_text/src/lib.rs index f5498d26ef1fb4..26d25d4decc504 100644 --- a/crates/bevy_text/src/lib.rs +++ b/crates/bevy_text/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - mod error; mod font; mod font_atlas; diff --git a/crates/bevy_time/src/lib.rs b/crates/bevy_time/src/lib.rs index 61b973b6c9f720..4a524e4726f30e 100644 --- a/crates/bevy_time/src/lib.rs +++ b/crates/bevy_time/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] #![doc = include_str!("../README.md")] diff --git a/crates/bevy_transform/src/lib.rs b/crates/bevy_transform/src/lib.rs index d4cec7b8fcf964..d47f21672c47db 100644 --- a/crates/bevy_transform/src/lib.rs +++ b/crates/bevy_transform/src/lib.rs @@ -1,4 +1,4 @@ -#![allow(clippy::type_complexity)] + #![warn(missing_docs)] #![warn(clippy::undocumented_unsafe_blocks)] #![doc = include_str!("../README.md")] diff --git a/crates/bevy_ui/src/lib.rs b/crates/bevy_ui/src/lib.rs index 1cee4a52a1c050..c817a9a5fd6774 100644 --- a/crates/bevy_ui/src/lib.rs +++ b/crates/bevy_ui/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::type_complexity)] - //! This crate contains Bevy's UI system, which can be used to create UI for both 2D and 3D games //! # Basic usage //! Spawn UI elements with [`node_bundles::ButtonBundle`], [`node_bundles::ImageBundle`], [`node_bundles::TextBundle`] and [`node_bundles::NodeBundle`] diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index 85e70e60bc5414..bb378a69551893 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -2,7 +2,7 @@ //! //! [Bevy]: https://bevyengine.org/ //! -#![allow(clippy::type_complexity)] + #![warn(missing_docs)] #![warn(clippy::undocumented_unsafe_blocks)] diff --git a/crates/bevy_window/src/lib.rs b/crates/bevy_window/src/lib.rs index bb367918db4209..512ec787bfe9f3 100644 --- a/crates/bevy_window/src/lib.rs +++ b/crates/bevy_window/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] //! `bevy_window` provides a platform-agnostic interface for windowing in Bevy. //! diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs index 21b694cdc2982d..e859de69c07133 100644 --- a/crates/bevy_winit/src/lib.rs +++ b/crates/bevy_winit/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![warn(missing_docs)] //! `bevy_winit` provides utilities to handle window creation and the eventloop through [`winit`] //! diff --git a/examples/3d/anti_aliasing.rs b/examples/3d/anti_aliasing.rs index bf3677918d8518..03e85e6a240ada 100644 --- a/examples/3d/anti_aliasing.rs +++ b/examples/3d/anti_aliasing.rs @@ -2,7 +2,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use std::f32::consts::PI; diff --git a/examples/3d/shadow_caster_receiver.rs b/examples/3d/shadow_caster_receiver.rs index e97d29fd09b159..fc5d7b25ba232b 100644 --- a/examples/3d/shadow_caster_receiver.rs +++ b/examples/3d/shadow_caster_receiver.rs @@ -2,7 +2,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use std::f32::consts::PI; diff --git a/examples/3d/ssao.rs b/examples/3d/ssao.rs index a175900763efde..a9f88db95aa64f 100644 --- a/examples/3d/ssao.rs +++ b/examples/3d/ssao.rs @@ -2,7 +2,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::{ core_pipeline::experimental::taa::{TemporalAntiAliasBundle, TemporalAntiAliasPlugin}, diff --git a/examples/ecs/custom_query_param.rs b/examples/ecs/custom_query_param.rs index 81a6d8cfa718a8..f2e4629f28496f 100644 --- a/examples/ecs/custom_query_param.rs +++ b/examples/ecs/custom_query_param.rs @@ -14,7 +14,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::{ecs::query::WorldQuery, prelude::*}; use std::fmt::Debug; diff --git a/examples/ecs/state.rs b/examples/ecs/state.rs index 5b220c7851efa4..ffdcb457ad1514 100644 --- a/examples/ecs/state.rs +++ b/examples/ecs/state.rs @@ -7,7 +7,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::prelude::*; diff --git a/examples/games/alien_cake_addict.rs b/examples/games/alien_cake_addict.rs index f01769f2fc1c77..c7ba6cefe43d18 100644 --- a/examples/games/alien_cake_addict.rs +++ b/examples/games/alien_cake_addict.rs @@ -2,7 +2,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use std::f32::consts::PI; diff --git a/examples/games/game_menu.rs b/examples/games/game_menu.rs index 4beaa03c603f10..bafdcd5752a1db 100644 --- a/examples/games/game_menu.rs +++ b/examples/games/game_menu.rs @@ -4,7 +4,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::prelude::*; diff --git a/examples/input/text_input.rs b/examples/input/text_input.rs index fa33e3dae8cf14..0939af3fc03ede 100644 --- a/examples/input/text_input.rs +++ b/examples/input/text_input.rs @@ -6,7 +6,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::{input::keyboard::KeyboardInput, prelude::*}; diff --git a/examples/mobile/src/lib.rs b/examples/mobile/src/lib.rs index 5dcac8aceb6774..82ed029a5416ed 100644 --- a/examples/mobile/src/lib.rs +++ b/examples/mobile/src/lib.rs @@ -1,6 +1,5 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::{input::touch::TouchPhase, prelude::*, window::WindowMode}; diff --git a/examples/tools/scene_viewer/scene_viewer_plugin.rs b/examples/tools/scene_viewer/scene_viewer_plugin.rs index 3a41efe069cb0c..1b3e4948863602 100644 --- a/examples/tools/scene_viewer/scene_viewer_plugin.rs +++ b/examples/tools/scene_viewer/scene_viewer_plugin.rs @@ -5,7 +5,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::{ asset::LoadState, gltf::Gltf, input::common_conditions::input_just_pressed, prelude::*, diff --git a/examples/ui/button.rs b/examples/ui/button.rs index 5e37068572b6ae..9521d531eb6f97 100644 --- a/examples/ui/button.rs +++ b/examples/ui/button.rs @@ -3,7 +3,6 @@ // This lint usually gives bad advice in the context of Bevy -- hiding complex queries behind // type aliases tends to obfuscate code while offering no improvement in code cleanliness. -#![allow(clippy::type_complexity)] use bevy::{prelude::*, winit::WinitSettings};