Skip to content

Commit

Permalink
Make clippy on windows happy
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jan 23, 2024
1 parent 6f43277 commit 2d04083
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ mod windows {

let path = convert_path(path.as_os_str())?;
let operation: Vec<u16> = OsStr::new("open\0").encode_wide().collect();
// SAFETY: Pointers are valid for the duration of the function
// since we own the values that they point to.
let result = unsafe {
let mut info = SHELLEXECUTEINFOW {
cbSize: std::mem::size_of::<SHELLEXECUTEINFOW>() as u32,
Expand Down

0 comments on commit 2d04083

Please sign in to comment.