From 1372c44b2a7e63fb5b500c9d3c31798d8dd6c392 Mon Sep 17 00:00:00 2001 From: JMS55 <47158642+JMS55@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:53:18 -0800 Subject: [PATCH] Misc rename --- src/implementation.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implementation.rs b/src/implementation.rs index ecd9c30..3435da0 100644 --- a/src/implementation.rs +++ b/src/implementation.rs @@ -68,7 +68,7 @@ pub fn use_world<'a>(cx: &'a ScopeState) -> &'a World { .world_read_only } -pub fn use_res<'a, T: Resource>(cx: &'a ScopeState) -> &'a T { +pub fn use_resource<'a, T: Resource>(cx: &'a ScopeState) -> &'a T { cx.consume_context::() .expect("Must be used from a dioxus component within a DioxusUiRoot bevy component") .world_read_only diff --git a/src/lib.rs b/src/lib.rs index d094044..b91ced7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ use bevy::{ ecs::component::Component, }; -pub use self::implementation::{use_commands, use_res, use_world}; +pub use self::implementation::{use_commands, use_resource, use_world}; pub use dioxus_core::{Element, Scope}; pub struct DioxusUiPlugin;