From 1f17683ce9724a2e14eff6eeea944f4772c59a4d Mon Sep 17 00:00:00 2001 From: ycysdf Date: Sun, 10 Mar 2024 09:42:11 +0800 Subject: [PATCH] style: fmt --- crates/rxy_bevy/src/res_change_observe.rs | 5 +---- crates/rxy_bevy/src/view/res.rs | 2 -- crates/rxy_core/src/remove_on_drop.rs | 2 ++ examples/game_ui_challenges/inventory.rs | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/rxy_bevy/src/res_change_observe.rs b/crates/rxy_bevy/src/res_change_observe.rs index 6ea4f2d..9c2b6d7 100644 --- a/crates/rxy_bevy/src/res_change_observe.rs +++ b/crates/rxy_bevy/src/res_change_observe.rs @@ -1,9 +1,6 @@ use core::{ - marker::PhantomData, - ops::Deref, - sync::atomic::{AtomicUsize, Ordering}, + marker::PhantomData }; -use std::sync::Arc; use bevy_app::PreUpdate; use bevy_ecs::prelude::*; diff --git a/crates/rxy_bevy/src/view/res.rs b/crates/rxy_bevy/src/view/res.rs index 9935bb2..8119adf 100644 --- a/crates/rxy_bevy/src/view/res.rs +++ b/crates/rxy_bevy/src/view/res.rs @@ -1,9 +1,7 @@ use core::marker::PhantomData; -use std::sync::Arc; use bevy_ecs::prelude::Entity; use bevy_ecs::system::Resource; -use bevy_utils::synccell::SyncCell; use rxy_core::{ prelude::{ViewMember, ViewMemberCtx}, diff --git a/crates/rxy_core/src/remove_on_drop.rs b/crates/rxy_core/src/remove_on_drop.rs index d890440..4f7a632 100644 --- a/crates/rxy_core/src/remove_on_drop.rs +++ b/crates/rxy_core/src/remove_on_drop.rs @@ -2,6 +2,8 @@ use crate::{NodeTree, Renderer, RendererWorld, ViewKey}; use bevy_utils::synccell::SyncCell; use bevy_utils::OnDrop; use crate::renderer::DeferredNodeTreeScoped; + +#[allow(dead_code)] pub struct ViewRemoveOnDrop(SyncCell>>); pub trait RemoveOnDropWorldExt diff --git a/examples/game_ui_challenges/inventory.rs b/examples/game_ui_challenges/inventory.rs index 55428d2..d6f3d5b 100644 --- a/examples/game_ui_challenges/inventory.rs +++ b/examples/game_ui_challenges/inventory.rs @@ -20,7 +20,6 @@ use components::*; use hooked_collection::{HookVec, HookedVec, VecOperation}; use rxy_bevy::vec_data_source::use_hooked_vec_resource_source; use rxy_core::remove_on_drop::ViewRemoveOnDrop; -use rxy_core::utils::SyncCell; use rxy_core::NodeTree; fn main() {