-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fix more warnings, avoid duplicate code, fix typos (#38)
* avoid duplicate code * use is_none * use a slice instead of reference to vec * collapse ifs * collapse if * avoid an unneeded unwrap * avoid unneeded return * lift return out of if * use assert_eq! instead of assert! * use _ instead of an unused variable * dereference &bool before evaluating * fix typos * use if let Element::Tree(_) = value * avoid mutable references when not needed * remove redundant clones * don't use assert_eq! with bool literals * use _u32 insteadof a cast to u32 for literals * fix accidentally changed value * more _u32 * unneeded mut * return unreturned error * use is_some instead of let some * remove unused bool * use _ for unused * comment out unused value * fix unused includes
- Loading branch information
1 parent
6711fbc
commit 90cb1fe
Showing
12 changed files
with
220 additions
and
259 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
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
Oops, something went wrong.