aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/attachment.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-18 10:45:49 -0700
committerZeyla Hellyer <[email protected]>2017-09-18 10:45:49 -0700
commit220c153df8c58f693d90514a0a27de842bdbe3ef (patch)
treed4f0eb35eb9ae8b174ea897c547d87fd604aecf7 /src/model/channel/attachment.rs
parentAlphabetize Cargo.toml dependencies (diff)
downloadserenity-220c153df8c58f693d90514a0a27de842bdbe3ef.tar.xz
serenity-220c153df8c58f693d90514a0a27de842bdbe3ef.zip
Apply rustfmt
Diffstat (limited to 'src/model/channel/attachment.rs')
-rw-r--r--src/model/channel/attachment.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/model/channel/attachment.rs b/src/model/channel/attachment.rs
index af15bf7..079f4a9 100644
--- a/src/model/channel/attachment.rs
+++ b/src/model/channel/attachment.rs
@@ -32,7 +32,9 @@ impl Attachment {
/// If this attachment is an image, then a tuple of the width and height
/// in pixels is returned.
pub fn dimensions(&self) -> Option<(u64, u64)> {
- self.width.and_then(|width| self.height.map(|height| (width, height)))
+ self.width.and_then(
+ |width| self.height.map(|height| (width, height)),
+ )
}
/// Downloads the attachment, returning back a vector of bytes.