File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ dependencies = [
175
175
" filetime" ,
176
176
" getopts" ,
177
177
" ignore" ,
178
- " lazy_static" ,
179
178
" libc" ,
180
179
" merge" ,
181
180
" num_cpus" ,
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ libc = "0.2"
44
44
serde = { version = " 1.0.8" , features = [" derive" ] }
45
45
serde_json = " 1.0.2"
46
46
toml = " 0.5"
47
- lazy_static = " 1.3.0"
48
47
time = " 0.1"
49
48
ignore = " 0.4.10"
50
49
opener = " 0.5"
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ use std::ops::Deref;
13
13
use std:: path:: { Path , PathBuf } ;
14
14
use std:: sync:: Mutex ;
15
15
16
- use lazy_static:: lazy_static;
16
+ // FIXME: replace with std::lazy after it gets stabilized and reaches beta
17
+ use once_cell:: sync:: Lazy ;
17
18
18
19
use crate :: builder:: Step ;
19
20
@@ -222,9 +223,7 @@ impl Interner {
222
223
}
223
224
}
224
225
225
- lazy_static ! {
226
- pub static ref INTERNER : Interner = Interner :: default ( ) ;
227
- }
226
+ pub static INTERNER : Lazy < Interner > = Lazy :: new ( Interner :: default) ;
228
227
229
228
/// This is essentially a `HashMap` which allows storing any type in its input and
230
229
/// any type in its output. It is a write-once cache; values are never evicted,
You can’t perform that action at this time.
0 commit comments