File tree 2 files changed +4
-4
lines changed
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};
10
10
use std:: mem;
11
11
use std:: path:: { Path , PathBuf } ;
12
12
use std:: str:: FromStr ;
13
- use std:: sync:: { Once , ONCE_INIT } ;
13
+ use std:: sync:: Once ;
14
14
use std:: time:: Instant ;
15
15
use std:: vec;
16
16
@@ -89,7 +89,7 @@ pub struct Config {
89
89
impl Config {
90
90
pub fn new ( shell : Shell , cwd : PathBuf , homedir : PathBuf ) -> Config {
91
91
static mut GLOBAL_JOBSERVER : * mut jobserver:: Client = 0 as * mut _ ;
92
- static INIT : Once = ONCE_INIT ;
92
+ static INIT : Once = Once :: new ( ) ;
93
93
94
94
// This should be called early on in the process, so in theory the
95
95
// unsafety is ok here. (taken ownership of random fds)
Original file line number Diff line number Diff line change 1
1
use std:: env;
2
2
use std:: process:: Command ;
3
3
use std:: sync:: atomic:: { AtomicBool , Ordering } ;
4
- use std:: sync:: { Once , ONCE_INIT } ;
4
+ use std:: sync:: Once ;
5
5
6
6
use crate :: support:: { basic_bin_manifest, main_file, project} ;
7
7
@@ -23,7 +23,7 @@ pub fn disabled() -> bool {
23
23
// try to detect that before we fail a bunch of tests through no fault
24
24
// of the user.
25
25
static CAN_RUN_CROSS_TESTS : AtomicBool = AtomicBool :: new ( false ) ;
26
- static CHECK : Once = ONCE_INIT ;
26
+ static CHECK : Once = Once :: new ( ) ;
27
27
28
28
let cross_target = alternate ( ) ;
29
29
You can’t perform that action at this time.
0 commit comments