Skip to content

Commit

Permalink
Remove unneeded pub
Browse files Browse the repository at this point in the history
  • Loading branch information
hybras committed Feb 27, 2021
1 parent 021bb15 commit 3507b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mod windows {
use winapi::ctypes::c_int;
use winapi::um::shellapi::ShellExecuteW;

pub fn convert_path(path: &OsStr) -> io::Result<Vec<u16>> {
fn convert_path(path: &OsStr) -> io::Result<Vec<u16>> {
let mut maybe_result: Vec<_> = path.encode_wide().collect();
if maybe_result.iter().any(|&u| u == 0) {
return Err(io::Error::new(
Expand Down

0 comments on commit 3507b55

Please sign in to comment.