diff options
| author | bdbai <bdbaiapp@163.com> | 2025-01-03 11:14:03 +0800 |
|---|---|---|
| committer | bdbai <bdbaiapp@163.com> | 2025-01-03 11:14:03 +0800 |
| commit | 2389daab1b16e75216390063a1c97fccc3e0d2af (patch) | |
| tree | d3e18d1adc31be8f49a5fa95d6690b733fbefabb /library/std/src/sys | |
| parent | eeeff9a66cda13934600800eee40fd84ba1647eb (diff) | |
Fix UWP build
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/windows/os.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/windows/os.rs b/library/std/src/sys/pal/windows/os.rs index 5231a34469a..044dc2e8cd8 100644 --- a/library/std/src/sys/pal/windows/os.rs +++ b/library/std/src/sys/pal/windows/os.rs @@ -5,8 +5,9 @@ #[cfg(test)] mod tests; -use super::api::{self, WinError}; -use super::to_u16s; +#[cfg(not(target_vendor = "uwp"))] +use super::api::WinError; +use super::{api, to_u16s}; use crate::error::Error as StdError; use crate::ffi::{OsStr, OsString}; use crate::os::windows::ffi::EncodeWide; |
