Skip to content

Commit 661f381

Browse files
committed
chore: Run rustfmt with an older nightly version.
1 parent 8d4ccf6 commit 661f381

File tree

1 file changed

+20
-5
lines changed
  • crates/matrix-sdk/src/room

1 file changed

+20
-5
lines changed

crates/matrix-sdk/src/room/mod.rs

+20-5
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,11 @@ impl Room {
805805
&self,
806806
event_type: StateEventType,
807807
) -> Result<Vec<RawAnySyncOrStrippedState>> {
808-
self.client.state_store().get_state_events(self.room_id(), event_type).await.map_err(Into::into)
808+
self.client
809+
.state_store()
810+
.get_state_events(self.room_id(), event_type)
811+
.await
812+
.map_err(Into::into)
809813
}
810814

811815
/// Get all state events of a given statically-known type in this room.
@@ -877,7 +881,11 @@ impl Room {
877881
I: IntoIterator<Item = &'a K> + Send,
878882
I::IntoIter: Send,
879883
{
880-
Ok(self.client.state_store().get_state_events_for_keys_static(self.room_id(), state_keys).await?)
884+
Ok(self
885+
.client
886+
.state_store()
887+
.get_state_events_for_keys_static(self.room_id(), state_keys)
888+
.await?)
881889
}
882890

883891
/// Get a specific state event in this room.
@@ -948,7 +956,11 @@ impl Room {
948956
C::Redacted: RedactedStateEventContent,
949957
K: AsRef<str> + ?Sized + Sync,
950958
{
951-
Ok(self.client.state_store().get_state_event_static_for_key(self.room_id(), state_key).await?)
959+
Ok(self
960+
.client
961+
.state_store()
962+
.get_state_event_static_for_key(self.room_id(), state_key)
963+
.await?)
952964
}
953965

954966
/// Returns the parents this room advertises as its parents.
@@ -1069,8 +1081,11 @@ impl Room {
10691081
/// Returns true if all devices in the room are verified, otherwise false.
10701082
#[cfg(feature = "e2e-encryption")]
10711083
pub async fn contains_only_verified_devices(&self) -> Result<bool> {
1072-
let user_ids =
1073-
self.client.state_store().get_user_ids(self.room_id(), RoomMemberships::empty()).await?;
1084+
let user_ids = self
1085+
.client
1086+
.state_store()
1087+
.get_user_ids(self.room_id(), RoomMemberships::empty())
1088+
.await?;
10741089

10751090
for user_id in user_ids {
10761091
let devices = self.client.encryption().get_user_devices(&user_id).await?;

0 commit comments

Comments
 (0)