mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00
fix: fix windows build
This commit is contained in:
parent
61868dfb56
commit
67ca183a25
@ -5,10 +5,15 @@ mod decompress;
|
|||||||
mod list;
|
mod list;
|
||||||
|
|
||||||
use std::{ops::ControlFlow, path::PathBuf};
|
use std::{ops::ControlFlow, path::PathBuf};
|
||||||
use std::os::unix::prelude::OsStrExt;
|
|
||||||
use rayon::prelude::{IndexedParallelIterator, IntoParallelRefIterator, ParallelIterator};
|
use rayon::prelude::{IndexedParallelIterator, IntoParallelRefIterator, ParallelIterator};
|
||||||
use utils::colors;
|
use utils::colors;
|
||||||
|
|
||||||
|
// OsStrExt for password as_bytes() conversion
|
||||||
|
#[cfg(unix)]
|
||||||
|
use std::os::unix::prelude::OsStrExt;
|
||||||
|
#[cfg(windows)]
|
||||||
|
use std::os::windows::prelude::OsStrExt;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
check,
|
check,
|
||||||
cli::Subcommand,
|
cli::Subcommand,
|
||||||
@ -188,7 +193,7 @@ pub fn run(
|
|||||||
output_file_path,
|
output_file_path,
|
||||||
question_policy,
|
question_policy,
|
||||||
args.quiet,
|
args.quiet,
|
||||||
args.password.as_deref().map(|str|str.as_bytes()),
|
args.password.as_deref().map(|str| str.as_bytes()),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user