diff options
| author | Austin Hellyer <[email protected]> | 2016-11-10 17:09:24 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-10 17:09:24 -0800 |
| commit | b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1 (patch) | |
| tree | dbea47d3cfcf983ba95411fd2e8af35f141cd807 /src/model/utils.rs | |
| parent | Implementing missing HTTP methods (diff) | |
| download | serenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.tar.xz serenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.zip | |
Fix some clippy lints
Diffstat (limited to 'src/model/utils.rs')
| -rw-r--r-- | src/model/utils.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/model/utils.rs b/src/model/utils.rs index a05ff20..d66b258 100644 --- a/src/model/utils.rs +++ b/src/model/utils.rs @@ -7,7 +7,6 @@ use super::{ EmojiId, Member, Presence, - PublicChannel, ReadState, Relationship, Role, @@ -146,17 +145,6 @@ pub fn decode_private_channels(value: Value) Ok(private_channels) } -pub fn decode_public_channels(value: Value) - -> Result<HashMap<ChannelId, PublicChannel>> { - let mut public_channels = HashMap::new(); - - for public_channel in try!(decode_array(value, PublicChannel::decode)) { - public_channels.insert(public_channel.id, public_channel); - } - - Ok(public_channels) -} - pub fn decode_read_states(value: Value) -> Result<HashMap<ChannelId, ReadState>> { let mut read_states = HashMap::new(); |