File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3
3
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
4
5
5
use core:: {
6
- borrow:: Borrow ,
7
6
fmt:: { self , Write } ,
8
7
marker:: PhantomData ,
9
8
} ;
@@ -121,7 +120,7 @@ where
121
120
{
122
121
let store = B :: try_from_items ( items. map ( Ok ) ) ?;
123
122
#[ cfg( debug_assertions) ]
124
- match B :: validate_store ( store . borrow ( ) ) {
123
+ match B :: validate_store ( core :: borrow:: Borrow :: borrow ( & store ) ) {
125
124
Ok ( ( ) ) => ( ) ,
126
125
Err ( e) => {
127
126
debug_assert ! ( false , "{:?}" , e) ;
@@ -171,7 +170,7 @@ where
171
170
) ;
172
171
let store = B :: try_from_items ( parser) ?;
173
172
#[ cfg( debug_assertions) ]
174
- match B :: validate_store ( store . borrow ( ) ) {
173
+ match B :: validate_store ( core :: borrow:: Borrow :: borrow ( & store ) ) {
175
174
Ok ( ( ) ) => ( ) ,
176
175
Err ( e) => {
177
176
debug_assert ! ( false , "{:?} for pattern {:?}" , e, pattern) ;
You can’t perform that action at this time.
0 commit comments