Skip to content

Commit

Permalink
Remove the ext module and remove a match
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arqunis committed Aug 1, 2017
1 parent 53dc3cb commit 4f2e47f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 29 deletions.
21 changes: 0 additions & 21 deletions src/ext.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ pub mod builder;
pub mod cache;
#[cfg(feature = "client")]
pub mod client;
#[cfg(any(feature = "cache", feature = "builtin_framework", feature = "voice"))]
pub mod ext;
#[cfg(feature = "builtin_framework")]
pub mod framework;
#[cfg(feature = "gateway")]
Expand Down
8 changes: 2 additions & 6 deletions src/model/guild/audit_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>()?;
}
};

Expand Down

0 comments on commit 4f2e47f

Please sign in to comment.