From b59077e83dee0cb6603a535295c8a80fde1c2905 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 30 Jun 2022 16:48:27 +0200 Subject: [PATCH] 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. --- bindings/matrix-sdk-crypto-nodejs/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/matrix-sdk-crypto-nodejs/src/types.rs b/bindings/matrix-sdk-crypto-nodejs/src/types.rs index 93c14ca7f..271e77247 100644 --- a/bindings/matrix-sdk-crypto-nodejs/src/types.rs +++ b/bindings/matrix-sdk-crypto-nodejs/src/types.rs @@ -51,7 +51,7 @@ impl Signatures { #[napi] pub fn get(&self, signer: &UserId) -> Option> { 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()) })