Skip to content

Commit d59c035

Browse files
committed
Avoid potential problems
1 parent b6142eb commit d59c035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phper/src/classes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ pub struct ClassEntity<T: 'static> {
452452
state_constructor: Rc<StateConstructor>,
453453
method_entities: Vec<MethodEntity>,
454454
property_entities: Vec<PropertyEntity>,
455-
parent: Option<StateClass<()>>,
455+
parent: Option<StateClass<[()]>>,
456456
interfaces: Vec<Interface>,
457457
constants: Vec<ConstantEntity>,
458458
bound_class: StateClass<T>,
@@ -608,7 +608,7 @@ impl<T: 'static> ClassEntity<T> {
608608
/// }
609609
/// ```
610610
pub fn extends<S: ?Sized>(&mut self, parent: StateClass<S>) {
611-
self.parent = Some(unsafe { transmute::<StateClass<S>, StateClass<()>>(parent) });
611+
self.parent = Some(unsafe { transmute::<StateClass<S>, StateClass<[()]>>(parent) });
612612
}
613613

614614
/// Register class to `implements` the interface, due to the class can

0 commit comments

Comments
 (0)