From da8bf66cf8c62a652b43b9c8180e54e5dd8e5262 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Mon, 20 Feb 2023 23:59:03 +0000 Subject: [PATCH] Remove unnecessary clippy allows (#7768) # Objective I think that these allows are no longer necessary after #6534. ## Solution Let's remove them and see if clippy complains. --- crates/bevy_ecs/src/world/mod.rs | 2 -- crates/bevy_ui/src/flex/mod.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/crates/bevy_ecs/src/world/mod.rs b/crates/bevy_ecs/src/world/mod.rs index e52fa59c8c14d..0f78884e16944 100644 --- a/crates/bevy_ecs/src/world/mod.rs +++ b/crates/bevy_ecs/src/world/mod.rs @@ -1763,8 +1763,6 @@ impl fmt::Debug for World { } } -// TODO: remove allow on lint - https://github.com/bevyengine/bevy/issues/3666 -#[allow(clippy::non_send_fields_in_send_ty)] // SAFETY: all methods on the world ensure that non-send resources are only accessible on the main thread unsafe impl Send for World {} // SAFETY: all methods on the world ensure that non-send resources are only accessible on the main thread diff --git a/crates/bevy_ui/src/flex/mod.rs b/crates/bevy_ui/src/flex/mod.rs index d48d6a0f3b5b9..d7aff844eb8d9 100644 --- a/crates/bevy_ui/src/flex/mod.rs +++ b/crates/bevy_ui/src/flex/mod.rs @@ -29,8 +29,6 @@ pub struct FlexSurface { } // SAFETY: as long as MeasureFunc is Send + Sync. https://github.com/DioxusLabs/taffy/issues/146 -// TODO: remove allow on lint - https://github.com/bevyengine/bevy/issues/3666 -#[allow(clippy::non_send_fields_in_send_ty)] unsafe impl Send for FlexSurface {} unsafe impl Sync for FlexSurface {}