remove unnecessary args in pack_receipts
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
a26b1c5722
commit
e0446181c5
2 changed files with 7 additions and 7 deletions
|
@ -133,10 +133,10 @@ impl Service {
|
|||
#[must_use]
|
||||
pub fn pack_receipts<I>(receipts: I) -> Raw<SyncEphemeralRoomEvent<ReceiptEventContent>>
|
||||
where
|
||||
I: Iterator<Item = (OwnedUserId, u64, Raw<AnySyncEphemeralRoomEvent>)>,
|
||||
I: Iterator<Item = Raw<AnySyncEphemeralRoomEvent>>,
|
||||
{
|
||||
let mut json = BTreeMap::new();
|
||||
for (_, _, value) in receipts {
|
||||
for value in receipts {
|
||||
let receipt = serde_json::from_str::<SyncEphemeralRoomEvent<ReceiptEventContent>>(value.json().get());
|
||||
if let Ok(value) = receipt {
|
||||
for (event, receipt) in value.content {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue