Skip to content

Commit

Permalink
Merge pull request #36 from ChengyuZhu6/typo
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
zvonkok authored Oct 30, 2024
2 parents 3d3e665 + 4b97986 commit 5760006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/annotations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const MAX_NAME_LEN: usize = 63;
// be in the format of "vendor.device-type".
#[allow(dead_code)]
pub(crate) fn update_annotations(
option_annotaions: Option<HashMap<String, String>>,
option_annotations: Option<HashMap<String, String>>,
plugin_name: &str,
device_id: &str,
devices: Vec<String>,
) -> Result<HashMap<String, String>> {
let mut annotations = option_annotations.unwrap_or_else(HashMap::new);
let mut annotations = option_annotations.unwrap_or_default();

let key = annotation_key(plugin_name, device_id).context("CDI annotation key failed")?;
if annotations.contains_key(&key) {
Expand Down
2 changes: 1 addition & 1 deletion src/spec_dirs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lazy_static! {
// DEFAULT_SPEC_DIRS is the default Spec directory configuration.
// While altering this variable changes the package defaults,
// the preferred way of overriding the default directories is
// to use a WithSpecDirs options. Otherwise the change is only
// to use a with_spec_dirs options. Otherwise the change is only
// effective if it takes place before creating the Registry or
// other Cache instances.
pub static ref DEFAULT_SPEC_DIRS: &'static [&'static str] = &[
Expand Down

0 comments on commit 5760006

Please sign in to comment.