mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
Merge pull request #1271 from stevepentland/wasm-windows-fix
Include guards around os-specific string elements.
This commit is contained in:
parent
abd7be3362
commit
4ebede6d9a
1 changed files with 4 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
|||
// Std
|
||||
use std::ffi::{OsStr, OsString};
|
||||
use std::io::{self, BufWriter, Write};
|
||||
#[cfg(all(feature = "debug", not(target_arch = "wasm32")))]
|
||||
#[cfg(all(feature = "debug", not(any(target_os = "windows", target_arch = "wasm32"))))]
|
||||
use std::os::unix::ffi::OsStrExt;
|
||||
#[cfg(all(feature = "debug", any(target_os = "windows", target_arch = "wasm32")))]
|
||||
use osstringext::OsStrExt3;
|
||||
use std::path::PathBuf;
|
||||
use std::slice::Iter;
|
||||
use std::iter::Peekable;
|
||||
use std::mem;
|
||||
|
|
Loading…
Reference in a new issue