Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Nov 6, 2024
1 parent 8632735 commit 507a772
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions collab-user/src/reminder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ impl Reminders {
where
F: FnOnce(ReminderUpdate),
{
if let Some((_, mut value)) = self.find(txn, reminder_id) {
if let Out::YMap(map) = &mut value {
let update = ReminderUpdate { map_ref: map, txn };
f(update)
}
if let Some((_, Out::YMap(mut map))) = self.find(txn, reminder_id) {
let update = ReminderUpdate {
map_ref: &mut map,
txn,
};
f(update)
}
}

Expand Down

0 comments on commit 507a772

Please sign in to comment.