File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ const MAX_NAME_LEN: usize = 63;
13
13
// be in the format of "vendor.device-type".
14
14
#[ allow( dead_code) ]
15
15
pub ( crate ) fn update_annotations (
16
- option_annotaions : Option < HashMap < String , String > > ,
16
+ option_annotations : Option < HashMap < String , String > > ,
17
17
plugin_name : & str ,
18
18
device_id : & str ,
19
19
devices : Vec < String > ,
20
20
) -> Result < HashMap < String , String > > {
21
- let mut annotations = option_annotations. unwrap_or_else ( HashMap :: new ) ;
21
+ let mut annotations = option_annotations. unwrap_or_default ( ) ;
22
22
23
23
let key = annotation_key ( plugin_name, device_id) . context ( "CDI annotation key failed" ) ?;
24
24
if annotations. contains_key ( & key) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ lazy_static! {
23
23
// DEFAULT_SPEC_DIRS is the default Spec directory configuration.
24
24
// While altering this variable changes the package defaults,
25
25
// the preferred way of overriding the default directories is
26
- // to use a WithSpecDirs options. Otherwise the change is only
26
+ // to use a with_spec_dirs options. Otherwise the change is only
27
27
// effective if it takes place before creating the Registry or
28
28
// other Cache instances.
29
29
pub static ref DEFAULT_SPEC_DIRS : & ' static [ & ' static str ] = & [
You can’t perform that action at this time.
0 commit comments