Skip to content

Commit

Permalink
Fix SGX CI
Browse files Browse the repository at this point in the history
Broken in rust-lang#79038
  • Loading branch information
Jethro Beekman committed Dec 1, 2020
1 parent b2dd829 commit af7280b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/tests/env.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::env::*;
use std::ffi::{OsStr, OsString};
use std::path::PathBuf;

use rand::distributions::Alphanumeric;
use rand::{thread_rng, Rng};
Expand Down Expand Up @@ -82,6 +81,8 @@ fn test_env_set_var() {
#[cfg_attr(any(target_os = "emscripten", target_env = "sgx"), ignore)]
#[allow(deprecated)]
fn env_home_dir() {
use std::path::PathBuf;

fn var_to_os_string(var: Result<String, VarError>) -> Option<OsString> {
match var {
Ok(var) => Some(OsString::from(var)),
Expand Down

0 comments on commit af7280b

Please sign in to comment.