Skip to content

Commit 43c6f73

Browse files
committed
Fix warning when building release mode
1 parent 4de871f commit 43c6f73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/pattern/src/frontend.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
44

55
use core::{
6-
borrow::Borrow,
76
fmt::{self, Write},
87
marker::PhantomData,
98
};
@@ -121,7 +120,7 @@ where
121120
{
122121
let store = B::try_from_items(items.map(Ok))?;
123122
#[cfg(debug_assertions)]
124-
match B::validate_store(store.borrow()) {
123+
match B::validate_store(core::borrow::Borrow::borrow(&store)) {
125124
Ok(()) => (),
126125
Err(e) => {
127126
debug_assert!(false, "{:?}", e);
@@ -171,7 +170,7 @@ where
171170
);
172171
let store = B::try_from_items(parser)?;
173172
#[cfg(debug_assertions)]
174-
match B::validate_store(store.borrow()) {
173+
match B::validate_store(core::borrow::Borrow::borrow(&store)) {
175174
Ok(()) => (),
176175
Err(e) => {
177176
debug_assert!(false, "{:?} for pattern {:?}", e, pattern);

0 commit comments

Comments
 (0)