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()) })