We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4208a22 commit bfa7e8cCopy full SHA for bfa7e8c
library/std/src/sys/windows/mod.rs
@@ -150,7 +150,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
150
151
pub fn unrolled_find_u16s(needle: u16, haystack: &[u16]) -> Option<usize> {
152
let ptr = haystack.as_ptr();
153
- let mut start = &haystack[..];
+ let mut start = haystack;
154
155
// For performance reasons unfold the loop eight times.
156
while start.len() >= 8 {
0 commit comments