Skip to content

Commit 91b2997

Browse files
committed
changed impl Into<NodePath> to &str
1 parent 5a5157d commit 91b2997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gdnative/src/gdscript.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ use gdnative_core::{
2020
/// let scene = load::<PackedScene>("res://path").unwrap();
2121
/// ```
2222
#[inline]
23-
pub fn load<T>(path: impl Into<NodePath>) -> Option<Ref<T>>
23+
pub fn load<T>(path: &str) -> Option<Ref<T>>
2424
where
2525
T: SubClass<Resource> + GodotObject<Memory = RefCounted>,
2626
{
2727
ResourceLoader::godot_singleton()
28-
.load(path.into(), "", false)
28+
.load(path, "", false)
2929
.unwrap()
3030
.cast::<T>()
3131
}

0 commit comments

Comments
 (0)