File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ bindgen = "0.72.0"
2929[dev-dependencies ]
3030glob = " 0.3.0"
3131gpt = " 3.0.0"
32- once_cell = " 1.19.0"
3332serde = { version = " 1.0.130" , features = [" derive" ] }
3433serde_json = " 1.0.68"
3534tempfile = " 3.4.0"
Original file line number Diff line number Diff line change 11use libc:: fallocate;
2- use once_cell:: sync:: Lazy ;
32use serde:: { Deserialize , Deserializer } ;
43use std:: {
54 fs:: OpenOptions ,
65 io,
76 os:: unix:: io:: AsRawFd ,
87 path:: Path ,
98 process:: Command ,
9+ sync:: LazyLock ,
1010 sync:: { Arc , Mutex , MutexGuard } ,
1111} ;
1212
1313use tempfile:: { NamedTempFile , TempPath } ;
1414
1515// All tests use the same loopback device interface and so can tread on each others toes leading to
1616// racy tests. So we need to lock all tests to ensure only one runs at a time.
17- static LOCK : Lazy < Arc < Mutex < ( ) > > > = Lazy :: new ( || Arc :: new ( Mutex :: new ( ( ) ) ) ) ;
17+ static LOCK : LazyLock < Arc < Mutex < ( ) > > > = LazyLock :: new ( || Arc :: new ( Mutex :: new ( ( ) ) ) ) ;
1818
1919pub fn create_backing_file ( size : i64 ) -> TempPath {
2020 let file = NamedTempFile :: new ( ) . expect ( "should be able to create a temp file" ) ;
You can’t perform that action at this time.
0 commit comments