aboutsummaryrefslogtreecommitdiff
path: root/src/model/utils.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-10 17:09:24 -0800
committerAustin Hellyer <[email protected]>2016-11-10 17:09:24 -0800
commitb0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1 (patch)
treedbea47d3cfcf983ba95411fd2e8af35f141cd807 /src/model/utils.rs
parentImplementing missing HTTP methods (diff)
downloadserenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.tar.xz
serenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.zip
Fix some clippy lints
Diffstat (limited to 'src/model/utils.rs')
-rw-r--r--src/model/utils.rs12
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();