chore(bindings/crypto-nodejs): Replacing into_iter by iter on &BTreeMap.

Calling `into_iter` on `&BTreeMap` will not consume it. It has the
same effect as calling `iter`. So let's do it.
This commit is contained in:
Ivan Enderlin
2022-06-30 16:48:27 +02:00
parent 3f197734d9
commit b59077e83d
@@ -51,7 +51,7 @@ impl Signatures {
#[napi]
pub fn get(&self, signer: &UserId) -> Option<HashMap<String, MaybeSignature>> {
self.inner.get(signer.inner.as_ref()).map(|map| {
map.into_iter()
map.iter()
.map(|(device_key_id, maybe_signature)| {
(device_key_id.as_str().to_owned(), maybe_signature.clone().into())
})