aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/guild/audit_log.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/model/guild/audit_log.rs b/src/model/guild/audit_log.rs
index a4dc005..4d2988b 100644
--- a/src/model/guild/audit_log.rs
+++ b/src/model/guild/audit_log.rs
@@ -304,12 +304,8 @@ impl<'de> Deserialize<'de> for AuditLogs {
fn visit_map<V: MapAccess<'de>>(self, mut map: V) -> Result<AuditLogs, V::Error> {
let audit_log_entries = loop {
- if let Some(key) = map.next_key()? {
- match key {
- Field::AuditLogEntries => {
- break map.next_value::<Vec<AuditLogEntry>>()?;
- },
- }
+ if let Some(Field::AuditLogEntries) = map.next_key()? {
+ break map.next_value::<Vec<AuditLogEntry>>()?;
}
};