diff options
| author | acdenisSK <[email protected]> | 2017-07-29 22:53:50 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-29 22:53:50 +0200 |
| commit | 0d6965f647396c84b2570e92b63244c3afaea863 (patch) | |
| tree | 497cb26d44af5deca9afbe5ef9395d27aa3c9a8d /src/http/ratelimiting.rs | |
| parent | Fix imports (diff) | |
| download | serenity-0d6965f647396c84b2570e92b63244c3afaea863.tar.xz serenity-0d6965f647396c84b2570e92b63244c3afaea863.zip | |
Remove a few clones
Diffstat (limited to 'src/http/ratelimiting.rs')
| -rw-r--r-- | src/http/ratelimiting.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs index f0eb8fc..dad5f7e 100644 --- a/src/http/ratelimiting.rs +++ b/src/http/ratelimiting.rs @@ -370,8 +370,7 @@ 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); |