We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27bb8df commit 289c800Copy full SHA for 289c800
commons/zenoh-keyexpr/src/key_expr/borrowed.rs
@@ -377,7 +377,7 @@ impl keyexpr {
377
}
378
None => unsafe {
379
// "**" can match all remaining non-verbatim chunks
380
- Some(keyexpr::from_str_unchecked(std::str::from_utf8_unchecked(
+ Some(keyexpr::from_str_unchecked(core::str::from_utf8_unchecked(
381
&target_bytes[target_idx..],
382
)))
383
},
@@ -394,7 +394,7 @@ impl keyexpr {
394
if prefix_end == prefix_bytes.len() {
395
// Safety: every chunk of keyexpr is also a valid keyexpr
396
return unsafe {
397
398
&target_bytes[(target_end + 1)..],
399
400
};
0 commit comments