diff options
| author | Aron Parker <hl3mukkel@gmail.com> | 2022-04-22 11:42:53 +0200 |
|---|---|---|
| committer | Aron Parker <hl3mukkel@gmail.com> | 2022-04-22 11:42:53 +0200 |
| commit | 6cfdeaf1a198a63e65817f12e93b5a29fdddfda8 (patch) | |
| tree | b99b74bc96792df2f4fdf7f340cf7b24e38291ac /library/std/src/sys | |
| parent | 9a9d5534f04d81afc6fcdbe13fda490fcf595c60 (diff) | |
| download | rust-6cfdeaf1a198a63e65817f12e93b5a29fdddfda8.tar.gz rust-6cfdeaf1a198a63e65817f12e93b5a29fdddfda8.zip | |
Remove redundant type annotation
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/windows/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/mod.rs b/library/std/src/sys/windows/mod.rs index 8e1450e4d29..5923638a43b 100644 --- a/library/std/src/sys/windows/mod.rs +++ b/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>> { // in the OsStr plus one for the null-terminating character. We are not // wasting bytes here as paths created by this function are primarily used // in an ephemeral fashion. - let mut maybe_result: Vec<u16> = Vec::with_capacity(s.len() + 1); + let mut maybe_result = Vec::with_capacity(s.len() + 1); maybe_result.extend(s.encode_wide()); if unrolled_find_u16s(0, &maybe_result).is_some() { |
