diff options
| author | Maiddog <[email protected]> | 2017-10-04 22:18:16 -0500 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:48:18 -0700 |
| commit | da05efc610e59087887adb71bbeb71bc7b1494b6 (patch) | |
| tree | e527b6aa1c97bcd850e90b3580f674173587fd68 /src/http | |
| parent | Replace Vec parameters by IntoIterator (#176) (diff) | |
| download | serenity-da05efc610e59087887adb71bbeb71bc7b1494b6.tar.xz serenity-da05efc610e59087887adb71bbeb71bc7b1494b6.zip | |
Fix most clippy warnings
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/ratelimiting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs index a0023f6..ed3eb71 100644 --- a/src/http/ratelimiting.rs +++ b/src/http/ratelimiting.rs @@ -510,7 +510,7 @@ fn parse_header(headers: &Headers, header: &str) -> Result<Option<i64>> { .map_err(|_| Error::Http(HttpError::RateLimitUtf8)) .and_then(|v| { v.parse::<i64>() - .map(|v| Some(v)) + .map(Some) .map_err(|_| Error::Http(HttpError::RateLimitI64)) }) }) |