Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove accidental tokio import in ecs.rs #103

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/ecs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use std::{
rc::Rc,
sync::{Arc, Mutex},
};
use tokio::sync::RwLockWriteGuard;

macro_rules! impl_trait_for_tuples {
($t:tt) => {
Expand All @@ -42,7 +41,6 @@ impl Plugin for ActuatePlugin {
fn build(&self, app: &mut App) {
let rt = Runtime {
composers: RefCell::new(HashMap::new()),
lock: None,
};

app.insert_non_send_resource(rt)
Expand Down Expand Up @@ -92,7 +90,6 @@ struct RuntimeComposer {

struct Runtime {
composers: RefCell<HashMap<Entity, RuntimeComposer>>,
lock: Option<RwLockWriteGuard<'static, ()>>,
}

/// Composition of some composable content.
Expand Down Expand Up @@ -180,9 +177,6 @@ impl<C: Compose> Compose for CompositionContent<C> {
}

fn compose(world: &mut World) {
let mut rt = world.non_send_resource_mut::<Runtime>();
rt.lock = None;

RUNTIME_CONTEXT.with(|runtime_cx| {
let mut cell = runtime_cx.borrow_mut();
let runtime_cx = cell.get_or_insert_with(|| RuntimeContext {
Expand Down
Loading