Ugh
This commit is contained in:
@@ -34,7 +34,11 @@ impl ItemWithMeta {
|
||||
/// assert_eq!(meta_map.get("hostname"), Some(&"example.com".to_string()));
|
||||
/// ```
|
||||
pub fn meta_as_map(&self) -> HashMap<String, String> {
|
||||
self.meta.iter().cloned().map(|m| (m.name, m.value)).collect()
|
||||
self.meta
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(|m| (m.name, m.value))
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user