diff options
| author | acdenisSK <[email protected]> | 2017-08-01 10:54:32 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-01 10:54:32 +0200 |
| commit | 3f9db73a3c193eecfac142ecc40c48d9e4140591 (patch) | |
| tree | 4e361f176e09319cd3b94c7896ee850b896c4dc6 /src/http | |
| parent | Provide the input and limit back to the user, and do some consistencies (diff) | |
| download | serenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.tar.xz serenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.zip | |
Clippy and rustfmt
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/ratelimiting.rs | 3 |
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); |