File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ use std::collections::BTreeMap;
7
7
use std:: sync:: { LazyLock , Mutex } ;
8
8
9
9
// use BTreeMap so that the results are sorted by the typename, the Vec is sorted by version
10
- static ADAPTERS : LazyLock < Mutex < BTreeMap < String , Vec < DscResource > > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
11
- static RESOURCES : LazyLock < Mutex < BTreeMap < String , Vec < DscResource > > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
12
- static EXTENSIONS : LazyLock < Mutex < BTreeMap < String , DscExtension > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
13
- static ADAPTED_RESOURCES : LazyLock < Mutex < BTreeMap < String , Vec < DscResource > > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
10
+ static ADAPTERS : LazyLock < Mutex < BTreeMap < String , Vec < DscResource > > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
11
+ static RESOURCES : LazyLock < Mutex < BTreeMap < String , Vec < DscResource > > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
12
+ static EXTENSIONS : LazyLock < Mutex < BTreeMap < String , DscExtension > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
13
+ static ADAPTED_RESOURCES : LazyLock < Mutex < BTreeMap < String , Vec < DscResource > > > > = LazyLock :: new ( || Mutex :: new ( BTreeMap :: new ( ) ) ) ;
14
14
15
15
pub fn get_adapters ( ) -> BTreeMap < String , Vec < DscResource > > {
16
16
ADAPTERS . lock ( ) . unwrap ( ) . clone ( )
You can’t perform that action at this time.
0 commit comments