Skip to content

Commit bfa7e8c

Browse files
committed
redundant_slicing
1 parent 4208a22 commit bfa7e8c

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
150150

151151
pub fn unrolled_find_u16s(needle: u16, haystack: &[u16]) -> Option<usize> {
152152
let ptr = haystack.as_ptr();
153-
let mut start = &haystack[..];
153+
let mut start = haystack;
154154

155155
// For performance reasons unfold the loop eight times.
156156
while start.len() >= 8 {

0 commit comments

Comments
 (0)