Skip to content

Commit 5b1178d

Browse files
committed
Update ruma-events dependency
1 parent 8f3ebcb commit 5b1178d

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ impl Client {
197197
thumbnail_source,
198198
thumbnail_info
199199
});
200-
let content = assign!(ImageMessageEventContent::encrypted(body.to_owned(), file), {
201-
info: Some(Box::new(info))
202-
});
200+
let content =
201+
assign!(ImageMessageEventContent::encrypted(body.to_owned(), file), {
202+
info: Some(Box::new(info))
203+
});
203204
MessageType::Image(content)
204205
}
205206
mime::AUDIO => {
@@ -228,9 +229,10 @@ impl Client {
228229
thumbnail_source,
229230
thumbnail_info
230231
});
231-
let content = assign!(VideoMessageEventContent::encrypted(body.to_owned(), file), {
232-
info: Some(Box::new(info))
233-
});
232+
let content =
233+
assign!(VideoMessageEventContent::encrypted(body.to_owned(), file), {
234+
info: Some(Box::new(info))
235+
});
234236
MessageType::Video(content)
235237
}
236238
_ => {
@@ -1364,4 +1366,4 @@ mod tests {
13641366
let after_taking_lock_second_time = client.olm_machine().await.as_ref().unwrap().clone();
13651367
assert!(after_taking_lock_first_time.same_as(&after_taking_lock_second_time));
13661368
}
1367-
}
1369+
}

0 commit comments

Comments
 (0)