We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a9d553 commit 6cfdeafCopy full SHA for 6cfdeaf
library/std/src/sys/windows/mod.rs
@@ -160,7 +160,7 @@ pub fn to_u16s<S: AsRef<OsStr>>(s: S) -> crate::io::Result<Vec<u16>> {
160
// in the OsStr plus one for the null-terminating character. We are not
161
// wasting bytes here as paths created by this function are primarily used
162
// in an ephemeral fashion.
163
- let mut maybe_result: Vec<u16> = Vec::with_capacity(s.len() + 1);
+ let mut maybe_result = Vec::with_capacity(s.len() + 1);
164
maybe_result.extend(s.encode_wide());
165
166
if unrolled_find_u16s(0, &maybe_result).is_some() {
0 commit comments