File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use std::io::{self, SeekFrom};
1010use std:: mem;
1111use std:: path:: { Path , PathBuf } ;
1212use std:: str:: FromStr ;
13- use std:: sync:: { Once , ONCE_INIT } ;
13+ use std:: sync:: Once ;
1414use std:: time:: Instant ;
1515use std:: vec;
1616
@@ -89,7 +89,7 @@ pub struct Config {
8989impl Config {
9090 pub fn new ( shell : Shell , cwd : PathBuf , homedir : PathBuf ) -> Config {
9191 static mut GLOBAL_JOBSERVER : * mut jobserver:: Client = 0 as * mut _ ;
92- static INIT : Once = ONCE_INIT ;
92+ static INIT : Once = Once :: new ( ) ;
9393
9494 // This should be called early on in the process, so in theory the
9595 // unsafety is ok here. (taken ownership of random fds)
Original file line number Diff line number Diff line change 11use std:: env;
22use std:: process:: Command ;
33use std:: sync:: atomic:: { AtomicBool , Ordering } ;
4- use std:: sync:: { Once , ONCE_INIT } ;
4+ use std:: sync:: Once ;
55
66use crate :: support:: { basic_bin_manifest, main_file, project} ;
77
@@ -23,7 +23,7 @@ pub fn disabled() -> bool {
2323 // try to detect that before we fail a bunch of tests through no fault
2424 // of the user.
2525 static CAN_RUN_CROSS_TESTS : AtomicBool = AtomicBool :: new ( false ) ;
26- static CHECK : Once = ONCE_INIT ;
26+ static CHECK : Once = Once :: new ( ) ;
2727
2828 let cross_target = alternate ( ) ;
2929
You can’t perform that action at this time.
0 commit comments