aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/attachment.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-27 06:42:48 +0200
committeracdenisSK <[email protected]>2017-07-27 07:30:23 +0200
commit550030264952f0e0043b63f4582bb817ef8bbf37 (patch)
treeb921e2f78fd603a5ca671623083a32806fd16090 /src/model/channel/attachment.rs
parentUse a consistent indentation style (diff)
downloadserenity-550030264952f0e0043b63f4582bb817ef8bbf37.tar.xz
serenity-550030264952f0e0043b63f4582bb817ef8bbf37.zip
rustfmt
Diffstat (limited to 'src/model/channel/attachment.rs')
-rw-r--r--src/model/channel/attachment.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/model/channel/attachment.rs b/src/model/channel/attachment.rs
index 2238174..5d47469 100644
--- a/src/model/channel/attachment.rs
+++ b/src/model/channel/attachment.rs
@@ -1,9 +1,9 @@
-#[cfg(feature="model")]
+#[cfg(feature = "model")]
use hyper::Client as HyperClient;
-#[cfg(feature="model")]
+#[cfg(feature = "model")]
use std::io::Read;
-#[cfg(feature="model")]
-use ::internal::prelude::*;
+#[cfg(feature = "model")]
+use internal::prelude::*;
/// A file uploaded with a message. Not to be confused with [`Embed`]s.
///
@@ -27,7 +27,7 @@ pub struct Attachment {
pub width: Option<u64>,
}
-#[cfg(feature="model")]
+#[cfg(feature = "model")]
impl Attachment {
/// If this attachment is an image, then a tuple of the width and height
/// in pixels is returned.
@@ -90,7 +90,7 @@ impl Attachment {
/// }
///
/// fn on_ready(&self, _: Context, ready: Ready) {
- /// println!("{} is connected!", ready.user.name);
+ /// println!("{} is connected!", ready.user.name);
/// }
/// }
/// let token = env::var("DISCORD_TOKEN").expect("token in environment");