diff --git a/Cargo.toml b/Cargo.toml index 24e96e3754800..9ea3b5e2545b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,7 @@ undocumented_unsafe_blocks = "warn" redundant_else = "warn" match_same_arms = "warn" semicolon_if_nothing_returned = "warn" +doc_lazy_continuation = "allow" ptr_as_ptr = "warn" ptr_cast_constness = "warn" diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs index 8556fbd415d0a..e7fe108cd6154 100644 --- a/crates/bevy_asset/src/lib.rs +++ b/crates/bevy_asset/src/lib.rs @@ -1511,6 +1511,7 @@ mod tests { Empty, } + #[allow(dead_code)] #[derive(Asset, TypePath)] pub struct StructTestAsset { #[dependency] @@ -1519,6 +1520,7 @@ mod tests { embedded: TestAsset, } + #[allow(dead_code)] #[derive(Asset, TypePath)] pub struct TupleTestAsset(#[dependency] Handle); } diff --git a/crates/bevy_input/src/mouse.rs b/crates/bevy_input/src/mouse.rs index 70d531fb65c48..3573c9844d0cb 100644 --- a/crates/bevy_input/src/mouse.rs +++ b/crates/bevy_input/src/mouse.rs @@ -2,9 +2,6 @@ use crate::{ButtonInput, ButtonState}; use bevy_ecs::entity::Entity; -#[cfg(feature = "bevy_reflect")] -use bevy_ecs::reflect::ReflectResource; -use bevy_ecs::system::Resource; use bevy_ecs::{ change_detection::DetectChangesMut, event::{Event, EventReader}, @@ -12,7 +9,7 @@ use bevy_ecs::{ }; use bevy_math::Vec2; #[cfg(feature = "bevy_reflect")] -use bevy_reflect::{std_traits::ReflectDefault, Reflect}; +use bevy_reflect::Reflect; #[cfg(all(feature = "serialize", feature = "bevy_reflect"))] use bevy_reflect::{ReflectDeserialize, ReflectSerialize}; diff --git a/tools/example-showcase/src/main.rs b/tools/example-showcase/src/main.rs index 6eb4dd2a5759a..1c1b678362731 100644 --- a/tools/example-showcase/src/main.rs +++ b/tools/example-showcase/src/main.rs @@ -496,7 +496,7 @@ header_message = \"Examples (WebGL2)\" // and other characters that don't // work well in a URL path. let category_path = root_path.join( - &to_show + to_show .category .replace(['(', ')'], "") .replace(' ', "-") @@ -522,7 +522,7 @@ weight = {} .unwrap(); categories.insert(to_show.category.clone(), 0); } - let example_path = category_path.join(&to_show.technical_name.replace('_', "-")); + let example_path = category_path.join(to_show.technical_name.replace('_', "-")); let _ = fs::create_dir_all(&example_path); let code_path = example_path.join(Path::new(&to_show.path).file_name().unwrap()); @@ -678,7 +678,7 @@ header_message = \"Examples ({})\" let category_path = root_path.join(&to_build.category); let _ = fs::create_dir_all(&category_path); - let example_path = category_path.join(&to_build.technical_name.replace('_', "-")); + let example_path = category_path.join(to_build.technical_name.replace('_', "-")); let _ = fs::create_dir_all(&example_path); if website_hacks { @@ -688,17 +688,17 @@ header_message = \"Examples ({})\" let _ = fs::rename( Path::new("examples/wasm/target/wasm_example.js"), - &example_path.join("wasm_example.js"), + example_path.join("wasm_example.js"), ); if optimize_size { let _ = fs::rename( Path::new("examples/wasm/target/wasm_example_bg.wasm.optimized"), - &example_path.join("wasm_example_bg.wasm"), + example_path.join("wasm_example_bg.wasm"), ); } else { let _ = fs::rename( Path::new("examples/wasm/target/wasm_example_bg.wasm"), - &example_path.join("wasm_example_bg.wasm"), + example_path.join("wasm_example_bg.wasm"), ); } pb.inc();