minidom: Fix some issues reported by clippy

This commit is contained in:
Emmanuel Gil Peyrot 2021-10-11 15:34:07 +02:00
commit 4e914e5d3a
2 changed files with 11 additions and 24 deletions

View file

@ -13,19 +13,11 @@ use std::fmt;
pub type Prefix = Option<String>;
pub type Namespace = String;
#[derive(Clone, PartialEq, Eq)]
#[derive(Clone, Default, PartialEq, Eq)]
pub struct Prefixes {
prefixes: BTreeMap<Prefix, Namespace>,
}
impl Default for Prefixes {
fn default() -> Self {
Prefixes {
prefixes: BTreeMap::new(),
}
}
}
impl fmt::Debug for Prefixes {
// TODO: Fix end character
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {