This is a copy type, copy it
This commit is contained in:
parent
f8b5b8a032
commit
7957434036
|
@ -226,7 +226,7 @@ impl<'gc> XMLDocument<'gc> {
|
||||||
/// the `id` that were added to the document after the fact, will not be
|
/// the `id` that were added to the document after the fact, will not be
|
||||||
/// returned by this function.
|
/// returned by this function.
|
||||||
pub fn get_node_by_id(self, id: &str) -> Option<XMLNode<'gc>> {
|
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.
|
/// Retrieve all IDs currently present in the idmap.
|
||||||
|
|
Loading…
Reference in New Issue