Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
style: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ycysdf committed Mar 10, 2024
1 parent 5709db3 commit 1f17683
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions crates/rxy_bevy/src/res_change_observe.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand Down
2 changes: 0 additions & 2 deletions crates/rxy_bevy/src/view/res.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
2 changes: 2 additions & 0 deletions crates/rxy_core/src/remove_on_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<OnDrop<Box<dyn FnOnce() + Send>>>);

pub trait RemoveOnDropWorldExt<R>
Expand Down
1 change: 0 additions & 1 deletion examples/game_ui_challenges/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1f17683

Please sign in to comment.