forked from serenity-rs/serenity
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address some clippy warnings (serenity-rs#924)
* Address warnings for `clippy::option_as_ref_deref` The warnings were like this: called `.as_ref().map(String::as_str)` on an Option value. This can be done more directly by calling `query.as_deref()` instead * Address warning for `clippy::iter_nth_zero` The warning was like this: called `.nth(0)` on a `std::iter::Iterator`
- Loading branch information
Dany Marcoux
authored
Jul 29, 2020
1 parent
7dd01eb
commit 2a54410
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters