minidom: Fix some issues reported by clippy
This commit is contained in:
parent
464b5de0d0
commit
4e914e5d3a
2 changed files with 11 additions and 24 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue