Skip to content

Commit 1ee92f9

Browse files
bdbaigitbot
authored and
gitbot
committed
Fix UWP build
1 parent a222c95 commit 1ee92f9

File tree

1 file changed

+3
-2
lines changed
  • std/src/sys/pal/windows

1 file changed

+3
-2
lines changed

Diff for: std/src/sys/pal/windows/os.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
#[cfg(test)]
66
mod tests;
77

8-
use super::api::{self, WinError};
9-
use super::to_u16s;
8+
#[cfg(not(target_vendor = "uwp"))]
9+
use super::api::WinError;
10+
use super::{api, to_u16s};
1011
use crate::error::Error as StdError;
1112
use crate::ffi::{OsStr, OsString};
1213
use crate::os::windows::ffi::EncodeWide;

0 commit comments

Comments
 (0)