-
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 numerous warnings (#31)
* refactor: remove unused includes * refactor: remove unneeded mut * remove a number of unneeded `mut` * replace usages of unused `skipped` variable with `_` * ensure the values aren't None * don't silently ignore failures * don't silently ignore failures * use _ instead of skipped * use _ instead of other when not using it * remove usused includes (according to cargo test) * remove usused type alias * remove usused include * remove unneeded copies in make_prefixed_key * boolean simplification as suggested by cargo clippy * use !matches! as suggested by cargo clippy * use implicit return syntax * remove same body, if else * remove unneeded clones * use implicit return * use iter instead of into_iter * fix warning ``` warning: this expression borrows a reference (`&mut std::collections::HashMap<std::vec::Vec<u8>, merk::Merk<storage::rocksdb_storage::PrefixedRocksDbStorage>>`) that is immediately dereferenced by the compiler ``` * remove unneeded declaration * use -= * remove unnecessary borrowing * remove unneeded clone * unneeded borrow * collapse * use cloned and copied
- Loading branch information
1 parent
2e397d5
commit 1563eaf
Showing
11 changed files
with
161 additions
and
191 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
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.