minidom: Don't borrow prefix in Prefixes.get

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-03-29 21:25:18 +02:00
commit 770dff7cb0
2 changed files with 3 additions and 3 deletions

View file

@ -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) {