aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-01 10:54:32 +0200
committeracdenisSK <[email protected]>2017-08-01 10:54:32 +0200
commit3f9db73a3c193eecfac142ecc40c48d9e4140591 (patch)
tree4e361f176e09319cd3b94c7896ee850b896c4dc6 /src/http
parentProvide the input and limit back to the user, and do some consistencies (diff)
downloadserenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.tar.xz
serenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.zip
Clippy and rustfmt
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ratelimiting.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs
index dad5f7e..f0eb8fc 100644
--- a/src/http/ratelimiting.rs
+++ b/src/http/ratelimiting.rs
@@ -370,7 +370,8 @@ pub(crate) fn perform<'a, F>(route: Route, f: F) -> Result<Response>
remaining: i64::MAX,
reset: i64::MAX,
}))
- }).clone();
+ })
+ .clone();
let mut lock = bucket.lock().unwrap();
lock.pre_hook(&route);