This is a copy type, copy it

This commit is contained in:
David Wendt 2020-01-05 00:24:31 -05:00
parent f8b5b8a032
commit 7957434036
1 changed files with 1 additions and 1 deletions

View File

@ -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<XMLNode<'gc>> {
self.0.read().idmap.get(id).cloned()
self.0.read().idmap.get(id).copied()
}
/// Retrieve all IDs currently present in the idmap.