We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41a179b commit 4b97986Copy full SHA for 4b97986
src/annotations.rs
@@ -18,7 +18,7 @@ pub(crate) fn update_annotations(
18
device_id: &str,
19
devices: Vec<String>,
20
) -> Result<HashMap<String, String>> {
21
- let mut annotations = option_annotations.unwrap_or_else(HashMap::new);
+ let mut annotations = option_annotations.unwrap_or_default();
22
23
let key = annotation_key(plugin_name, device_id).context("CDI annotation key failed")?;
24
if annotations.contains_key(&key) {
0 commit comments