minidom: Don't borrow prefix in Prefixes.get
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
1f2d7aa99d
commit
770dff7cb0
2 changed files with 3 additions and 3 deletions
|
|
@ -49,8 +49,8 @@ impl Prefixes {
|
|||
&self.prefixes
|
||||
}
|
||||
|
||||
pub fn get(&self, prefix: Prefix) -> Option<&Namespace> {
|
||||
self.prefixes.get(&prefix)
|
||||
pub fn get(&self, prefix: &Prefix) -> Option<&Namespace> {
|
||||
self.prefixes.get(prefix)
|
||||
}
|
||||
|
||||
pub(crate) fn insert<S: Into<Namespace>>(&mut self, prefix: Prefix, namespace: S) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue