Skip to content

Commit

Permalink
Fix clippy::unnecessary_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Oct 27, 2022
1 parent e57103a commit 08b6da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -111,7 +111,7 @@ fn gethostname_impl() -> OsString {
"GetComputerNameExW did not provide buffer size"
);

let mut buffer = vec![0 as u16; buffer_size as usize];
let mut buffer = vec![0_u16; buffer_size as usize];
unsafe {
GetComputerNameExW(
ComputerNamePhysicalDnsHostname,
Expand Down

0 comments on commit 08b6da7

Please sign in to comment.