@@ -9,7 +9,8 @@ use crate::{
9
9
10
10
use crate :: utility:: { GenericTypeInfoCell , NonGenericTypeInfoCell } ;
11
11
use bevy_reflect_derive:: { impl_from_reflect_value, impl_reflect_value} ;
12
- use bevy_utils:: { Duration , HashMap , HashSet , Instant } ;
12
+ use bevy_utils:: { Duration , Instant } ;
13
+ use bevy_utils:: { HashMap , HashSet } ;
13
14
use std:: {
14
15
any:: Any ,
15
16
borrow:: Cow ,
@@ -889,18 +890,19 @@ mod tests {
889
890
Enum , FromReflect , Reflect , ReflectSerialize , TypeInfo , TypeRegistry , Typed , VariantInfo ,
890
891
VariantType ,
891
892
} ;
892
- use bevy_utils:: { HashMap , Instant } ;
893
+ use bevy_utils:: HashMap ;
894
+ use bevy_utils:: { Duration , Instant } ;
893
895
use std:: f32:: consts:: { PI , TAU } ;
894
896
895
897
#[ test]
896
898
fn can_serialize_duration ( ) {
897
899
let mut type_registry = TypeRegistry :: default ( ) ;
898
- type_registry. register :: < std :: time :: Duration > ( ) ;
900
+ type_registry. register :: < Duration > ( ) ;
899
901
900
902
let reflect_serialize = type_registry
901
- . get_type_data :: < ReflectSerialize > ( std:: any:: TypeId :: of :: < std :: time :: Duration > ( ) )
903
+ . get_type_data :: < ReflectSerialize > ( std:: any:: TypeId :: of :: < Duration > ( ) )
902
904
. unwrap ( ) ;
903
- let _serializable = reflect_serialize. get_serializable ( & std :: time :: Duration :: ZERO ) ;
905
+ let _serializable = reflect_serialize. get_serializable ( & Duration :: ZERO ) ;
904
906
}
905
907
906
908
#[ test]
0 commit comments