Skip to content

Commit 11c2ae0

Browse files
committed
Move property.rs to registry directory; rename config -> config.toml
1 parent 9afa98d commit 11c2ae0

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

godot-core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub mod builtin;
1313
pub mod init;
1414
pub mod log;
1515
pub mod obj;
16-
pub mod property;
1716

1817
#[doc(hidden)]
1918
#[path = "deprecated.rs"]

godot-core/src/registry/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use std::{fmt, ptr};
1616
use sys::{interface_fn, Global, GlobalGuard, GlobalLockError};
1717

1818
pub mod callbacks;
19+
pub mod property;
1920

2021
// Needed for class unregistering. The variable is populated during class registering. There is no actual concurrency here, because Godot
2122
// calls register/unregister in the main thread. Mutex is just casual way to ensure safety in this non-performance-critical path.

godot-core/src/property.rs renamed to godot-core/src/registry/property.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ impl PropertyHintInfo {
123123
///
124124
/// Starting with Godot version 4.3, the hint string will always be the empty string. Before that, the hint string is set to
125125
/// be `type_name`.
126-
pub fn with_hint_none<S: Into<GString>>(type_name: S) -> Self {
126+
pub fn with_hint_none(type_name: impl Into<GString>) -> Self {
127127
let hint_string = if sys::GdextBuild::since_api("4.3") {
128-
"".into()
128+
GString::new()
129129
} else {
130130
type_name.into()
131131
};

0 commit comments

Comments
 (0)