File tree 1 file changed +6
-6
lines changed
library/alloc/src/collections/btree/node
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ fn test_splitpoint() {
68
68
69
69
#[ test]
70
70
fn test_partial_eq ( ) {
71
- let mut root1 = NodeRef :: new_leaf ( & Global ) ;
71
+ let mut root1 = NodeRef :: new_leaf ( Global ) ;
72
72
root1. borrow_mut ( ) . push ( 1 , ( ) ) ;
73
- let mut root1 = NodeRef :: new_internal ( root1. forget_type ( ) , & Global ) . forget_type ( ) ;
74
- let root2 = Root :: new ( & Global ) ;
73
+ let mut root1 = NodeRef :: new_internal ( root1. forget_type ( ) , Global ) . forget_type ( ) ;
74
+ let root2 = Root :: new ( Global ) ;
75
75
root1. reborrow ( ) . assert_back_pointers ( ) ;
76
76
root2. reborrow ( ) . assert_back_pointers ( ) ;
77
77
@@ -87,9 +87,9 @@ fn test_partial_eq() {
87
87
assert ! ( top_edge_1 == top_edge_1) ;
88
88
assert ! ( top_edge_1 != top_edge_2) ;
89
89
90
- root1. pop_internal_level ( & Global ) ;
91
- unsafe { root1. into_dying ( ) . deallocate_and_ascend ( & Global ) } ;
92
- unsafe { root2. into_dying ( ) . deallocate_and_ascend ( & Global ) } ;
90
+ root1. pop_internal_level ( Global ) ;
91
+ unsafe { root1. into_dying ( ) . deallocate_and_ascend ( Global ) } ;
92
+ unsafe { root2. into_dying ( ) . deallocate_and_ascend ( Global ) } ;
93
93
}
94
94
95
95
#[ test]
You can’t perform that action at this time.
0 commit comments