diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2023-11-21 23:57:11 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2023-11-22 13:00:30 +0000 |
| commit | d7e1f1cc0813727b197e13a7672517da7ff42b44 (patch) | |
| tree | a5090b6a587c61ae5b9ddf534fb801bb50c399cc | |
| parent | 4c084c576ac5de81164a0d6a44093d99f47c233f (diff) | |
| download | rust-d7e1f1cc0813727b197e13a7672517da7ff42b44.tar.gz rust-d7e1f1cc0813727b197e13a7672517da7ff42b44.zip | |
op_ref
taken reference of right operand
| -rw-r--r-- | library/std/src/sys/windows/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/path.rs b/library/std/src/sys/windows/path.rs index 6f62206532c..d9684f21753 100644 --- a/library/std/src/sys/windows/path.rs +++ b/library/std/src/sys/windows/path.rs @@ -250,7 +250,7 @@ pub(crate) fn get_long_path(mut path: Vec<u16>, prefer_verbatim: bool) -> io::Re // \\?\UNC\ const UNC_PREFIX: &[u16] = &[SEP, SEP, QUERY, SEP, U, N, C, SEP]; - if path.starts_with(VERBATIM_PREFIX) || path.starts_with(NT_PREFIX) || path == &[0] { + if path.starts_with(VERBATIM_PREFIX) || path.starts_with(NT_PREFIX) || path == [0] { // Early return for paths that are already verbatim or empty. return Ok(path); } else if path.len() < LEGACY_MAX_PATH { |
