File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
bevy_mod_scripting_core/src/bindings Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -577,11 +577,16 @@ mod test {
577
577
let allocator = world. allocator ( ) ;
578
578
let mut allocator_write = allocator. write ( ) ;
579
579
let reflect_reference = ReflectReference :: new_allocated ( 2usize , & mut allocator_write) ;
580
+ let id = match reflect_reference. base . base_id {
581
+ ReflectBase :: Owned ( ref id) => id. to_string ( ) ,
582
+ _ => panic ! ( "Expected owned allocation" ) ,
583
+ } ;
584
+
580
585
drop ( allocator_write) ;
581
586
582
587
assert_eq ! (
583
588
reflect_reference. display_with_world( world. clone( ) ) ,
584
- "<Reference to Allocation(0 )(usize) -> usize>"
589
+ format! ( "<Reference to Allocation({id} )(usize) -> usize>" )
585
590
) ;
586
591
587
592
assert_eq ! (
@@ -591,7 +596,7 @@ mod test {
591
596
592
597
assert_eq ! (
593
598
reflect_reference. display_without_world( ) ,
594
- format!( "<Reference to Allocation(0 )({:?})>" , type_id)
599
+ format!( "<Reference to Allocation({id} )({:?})>" , type_id)
595
600
) ;
596
601
}
597
602
}
Original file line number Diff line number Diff line change @@ -916,10 +916,6 @@ impl Xtasks {
916
916
"html" ,
917
917
"--branch" ,
918
918
"--ignore-not-existing" ,
919
- "--ignore" ,
920
- "../*" ,
921
- "--ignore" ,
922
- "/*" ,
923
919
"-o" ,
924
920
"target/coverage/html" ,
925
921
] ,
@@ -939,10 +935,6 @@ impl Xtasks {
939
935
"lcov" ,
940
936
"--branch" ,
941
937
"--ignore-not-existing" ,
942
- "--ignore" ,
943
- "../*" ,
944
- "--ignore" ,
945
- "/*" ,
946
938
"-o" ,
947
939
"target/coverage/lcov.info" ,
948
940
] ,
You can’t perform that action at this time.
0 commit comments