Skip to content

Commit d7e1f1c

Browse files
committed
op_ref
taken reference of right operand
1 parent 4c084c5 commit d7e1f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pub(crate) fn get_long_path(mut path: Vec<u16>, prefer_verbatim: bool) -> io::Re
250250
// \\?\UNC\
251251
const UNC_PREFIX: &[u16] = &[SEP, SEP, QUERY, SEP, U, N, C, SEP];
252252

253-
if path.starts_with(VERBATIM_PREFIX) || path.starts_with(NT_PREFIX) || path == &[0] {
253+
if path.starts_with(VERBATIM_PREFIX) || path.starts_with(NT_PREFIX) || path == [0] {
254254
// Early return for paths that are already verbatim or empty.
255255
return Ok(path);
256256
} else if path.len() < LEGACY_MAX_PATH {

0 commit comments

Comments
 (0)