From aa1a47831af64ba34b20d97da1c6ef812070894e Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 8 Sep 2022 15:43:09 +0200 Subject: [PATCH] chore(crypto): Use longer variable names. --- crates/matrix-sdk-crypto/src/verification/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk-crypto/src/verification/mod.rs b/crates/matrix-sdk-crypto/src/verification/mod.rs index e15f53e41..0412dbbae 100644 --- a/crates/matrix-sdk-crypto/src/verification/mod.rs +++ b/crates/matrix-sdk-crypto/src/verification/mod.rs @@ -425,8 +425,8 @@ pub enum FlowId { impl FlowId { pub fn room_id(&self) -> Option<&RoomId> { - if let FlowId::InRoom(r, _) = &self { - Some(r) + if let FlowId::InRoom(room_id, _) = &self { + Some(room_id) } else { None } @@ -434,8 +434,8 @@ impl FlowId { pub fn as_str(&self) -> &str { match self { - FlowId::InRoom(_, r) => r.as_str(), - FlowId::ToDevice(t) => t.as_str(), + FlowId::InRoom(_, event_id) => event_id.as_str(), + FlowId::ToDevice(transaction_id) => transaction_id.as_str(), } } }