diff options
| author | acdenisSK <[email protected]> | 2017-08-01 06:22:45 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-01 06:26:41 +0200 |
| commit | 4f2e47f399a10b281a1638fd7fcd3b945154d52c (patch) | |
| tree | b637e700b3c92586e22bb03709428201e380bfc3 /src/model | |
| parent | Fix failing tests (#133) (diff) | |
| download | serenity-4f2e47f399a10b281a1638fd7fcd3b945154d52c.tar.xz serenity-4f2e47f399a10b281a1638fd7fcd3b945154d52c.zip | |
Remove the `ext` module and remove a match
The `ext` has existed for a long while just for backwards compatibility.
But then again, majority of people should have migrated to the current modules already; making this module useless to keep in the library.
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/guild/audit_log.rs | 8 |
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>>()?; } }; |