Skip to content

Commit 6cfdeaf

Browse files
committed
Remove redundant type annotation
1 parent 9a9d553 commit 6cfdeaf

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
@@ -160,7 +160,7 @@ pub fn to_u16s<S: AsRef<OsStr>>(s: S) -> crate::io::Result<Vec<u16>> {
160160
// in the OsStr plus one for the null-terminating character. We are not
161161
// wasting bytes here as paths created by this function are primarily used
162162
// in an ephemeral fashion.
163-
let mut maybe_result: Vec<u16> = Vec::with_capacity(s.len() + 1);
163+
let mut maybe_result = Vec::with_capacity(s.len() + 1);
164164
maybe_result.extend(s.encode_wide());
165165

166166
if unrolled_find_u16s(0, &maybe_result).is_some() {

0 commit comments

Comments
 (0)