aboutsummaryrefslogtreecommitdiff
path: root/src/http/ratelimiting.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/http/ratelimiting.rs
parentAlphabetize Cargo.toml dependencies (diff)
downloadserenity-220c153df8c58f693d90514a0a27de842bdbe3ef.tar.xz
serenity-220c153df8c58f693d90514a0a27de842bdbe3ef.zip
Apply rustfmt
Diffstat (limited to 'src/http/ratelimiting.rs')
-rw-r--r--src/http/ratelimiting.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs
index c401b53..bce9f12 100644
--- a/src/http/ratelimiting.rs
+++ b/src/http/ratelimiting.rs
@@ -508,7 +508,9 @@ fn parse_header(headers: &Headers, header: &str) -> Result<Option<i64>> {
str::from_utf8(&header[0])
.map_err(|_| Error::Http(HttpError::RateLimitUtf8))
.and_then(|v| {
- v.parse::<i64>().map(|v| Some(v)).map_err(|_| Error::Http(HttpError::RateLimitI64))
+ v.parse::<i64>().map(|v| Some(v)).map_err(|_| {
+ Error::Http(HttpError::RateLimitI64)
+ })
})
})
}