diff --git a/core/src/xml/document.rs b/core/src/xml/document.rs index cb9557df8..4b8da6420 100644 --- a/core/src/xml/document.rs +++ b/core/src/xml/document.rs @@ -226,7 +226,7 @@ impl<'gc> XMLDocument<'gc> { /// the `id` that were added to the document after the fact, will not be /// returned by this function. pub fn get_node_by_id(self, id: &str) -> Option> { - self.0.read().idmap.get(id).cloned() + self.0.read().idmap.get(id).copied() } /// Retrieve all IDs currently present in the idmap.