chore(sdk): Replace ref by &.

This commit is contained in:
Ivan Enderlin
2023-01-30 10:13:54 +01:00
parent 0a7193de62
commit f4607146e2

View File

@@ -407,7 +407,7 @@ async fn reaction() {
Some(VecDiff::UpdateAt { index: 1, value }) => value
);
let event_item = updated_message.as_event().unwrap().as_remote().unwrap();
let msg = assert_matches!(event_item.content, TimelineItemContent::Message(ref msg) => msg);
let msg = assert_matches!(&event_item.content, TimelineItemContent::Message(msg) => msg);
assert!(!msg.is_edited());
assert_eq!(event_item.reactions().len(), 1);
let details = &event_item.reactions()["👍"];