aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/private_channel.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-18 10:47:19 -0700
committerZeyla Hellyer <[email protected]>2017-09-18 17:48:37 -0700
commit8e3b4d601ffb78909db859640482f7e0bb10131f (patch)
tree16500c9274a0517a776ea707bb623d1c9947d8cf /src/model/channel/private_channel.rs
parentApply rustfmt (diff)
downloadserenity-8e3b4d601ffb78909db859640482f7e0bb10131f.tar.xz
serenity-8e3b4d601ffb78909db859640482f7e0bb10131f.zip
Fix compiles of a variety of feature combinations
This fixes compilation errors and warnings when compiling a mixture of non-default feature targets.
Diffstat (limited to 'src/model/channel/private_channel.rs')
-rw-r--r--src/model/channel/private_channel.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/channel/private_channel.rs b/src/model/channel/private_channel.rs
index d9abbb2..a51ba09 100644
--- a/src/model/channel/private_channel.rs
+++ b/src/model/channel/private_channel.rs
@@ -2,12 +2,13 @@ use chrono::{DateTime, FixedOffset};
use std::fmt::{Display, Formatter, Result as FmtResult};
use super::deserialize_single_recipient;
use model::*;
-use internal::RwLockExt;
#[cfg(feature = "model")]
use builder::{CreateMessage, GetMessages};
#[cfg(feature = "model")]
use http::AttachmentType;
+#[cfg(feature="model")]
+use internal::RwLockExt;
/// A Direct Message text channel with another user.
#[derive(Clone, Debug, Deserialize)]