From 12477a9e3057a327515dbb9383299db09c02c021 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Mon, 20 Feb 2023 15:31:46 -0700 Subject: [PATCH] Try removing lint allow --- 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 {}