Skip to content

Commit 10479aa

Browse files
committed
Flatten property::accessor::invalid
1 parent 9c3fbb1 commit 10479aa

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

gdnative-core/src/nativescript/export/property.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! Property registration.
22
3+
use accessor::{Getter, RawGetter, RawSetter, Setter};
4+
use invalid_accessor::{InvalidGetter, InvalidSetter};
5+
36
use crate::core_types::*;
47
use crate::nativescript::{Instance, NativeClass};
58
use crate::object::ownership::Shared;
@@ -8,9 +11,10 @@ use crate::object::Ref;
811
use crate::private::get_api;
912

1013
use super::{ClassBuilder, Export};
11-
use accessor::{Getter, InvalidGetter, InvalidSetter, RawGetter, RawSetter, Setter};
1214

1315
mod accessor;
16+
mod invalid_accessor;
17+
1418
pub mod hint;
1519

1620
/// Metadata about the exported property.

gdnative-core/src/nativescript/export/property/accessor.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ use crate::nativescript::user_data::{Map, MapMut, UserData};
88
use crate::nativescript::NativeClass;
99
use crate::object::{GodotObject, RawObject, TRef};
1010

11-
mod invalid;
12-
13-
pub use self::invalid::{InvalidGetter, InvalidSetter};
14-
1511
/// Trait for raw property setters.
1612
///
1713
/// This is an internal interface. User code should not use this directly.

gdnative-core/src/nativescript/export/property/accessor/invalid.rs renamed to gdnative-core/src/nativescript/export/property/invalid_accessor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use std::mem;
44

55
use crate::core_types::{FromVariant, ToVariant, Variant};
66
use crate::nativescript::NativeClass;
7-
use crate::*;
87

9-
use super::{RawGetter, RawSetter};
8+
use super::accessor::{RawGetter, RawSetter};
109

1110
/// Default setter used for a new property indicating that no valid setter is present. Outputs errors when invoked.
1211
#[derive(Debug)]

0 commit comments

Comments
 (0)