diff options
| author | Zeyla Hellyer <[email protected]> | 2018-07-15 23:32:50 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-07-15 23:33:59 -0700 |
| commit | 9da766976929417c4b8f487f8ec05b6f8b3f43ef (patch) | |
| tree | 83cfae143ad7c1c4423d5ac35bf71d6e0bc6b882 /src/model/guild/audit_log.rs | |
| parent | Support multiple prefixes for command-groups (#343) (diff) | |
| download | serenity-9da766976929417c4b8f487f8ec05b6f8b3f43ef.tar.xz serenity-9da766976929417c4b8f487f8ec05b6f8b3f43ef.zip | |
Fix some clippy lints
Some lints were not resolved due to causing API changes. Most lints in the
framework were left unfixed.
Diffstat (limited to 'src/model/guild/audit_log.rs')
| -rw-r--r-- | src/model/guild/audit_log.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/guild/audit_log.rs b/src/model/guild/audit_log.rs index 1c24d98..e4a344c 100644 --- a/src/model/guild/audit_log.rs +++ b/src/model/guild/audit_log.rs @@ -277,7 +277,7 @@ mod u64_handler { } fn visit_str<E: de::Error>(self, string: &str) -> StdResult<u64, E> { - string.parse().map_err(|e| de::Error::custom(e)) + string.parse().map_err(de::Error::custom) } } @@ -315,7 +315,7 @@ mod option_u64_handler { } fn visit_str<E: de::Error>(self, string: &str) -> StdResult<Option<u64>, E> { - string.parse().map(Some).map_err(|e| de::Error::custom(e)) + string.parse().map(Some).map_err(de::Error::custom) } } |