Skip to content

Commit

Permalink
Remove useless copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Oct 2, 2023
1 parent 4287a66 commit bc33fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ impl Element {
/// ```
///
pub fn closest_prefix<'a>(&self, doc: &'a Document, namespace_url: &str) -> Option<&'a str> {
let mut search = self.clone();
let mut search = *self;
loop {
let mut candidate: Option<&str> = None;
for (prefix, url) in search.namespace_decls(doc) {
Expand Down

0 comments on commit bc33fb7

Please sign in to comment.