rust-clippy: fix most warnings in `hg-core`
All of these are simple changes that for the most part are clear improvements and the rest are at most equivalent. The remaining warnings have to be fixed either with a bigger refactor like for the nested "revlog" module, or in the dependency `bytes-cast`, which we own. This will be done sometime in the future.
Showing
- rust/hg-core/src/ancestors.rs 7 additions, 6 deletionsrust/hg-core/src/ancestors.rs
- rust/hg-core/src/config/config.rs 10 additions, 10 deletionsrust/hg-core/src/config/config.rs
- rust/hg-core/src/config/layer.rs 11 additions, 15 deletionsrust/hg-core/src/config/layer.rs
- rust/hg-core/src/config/values.rs 1 addition, 5 deletionsrust/hg-core/src/config/values.rs
- rust/hg-core/src/copy_tracing.rs 9 additions, 12 deletionsrust/hg-core/src/copy_tracing.rs
- rust/hg-core/src/dagops.rs 3 additions, 3 deletionsrust/hg-core/src/dagops.rs
- rust/hg-core/src/dirstate.rs 1 addition, 1 deletionrust/hg-core/src/dirstate.rs
- rust/hg-core/src/dirstate/dirs_multiset.rs 1 addition, 1 deletionrust/hg-core/src/dirstate/dirs_multiset.rs
- rust/hg-core/src/dirstate/entry.rs 4 additions, 8 deletionsrust/hg-core/src/dirstate/entry.rs
- rust/hg-core/src/dirstate_tree/dirstate_map.rs 24 additions, 37 deletionsrust/hg-core/src/dirstate_tree/dirstate_map.rs
- rust/hg-core/src/dirstate_tree/on_disk.rs 6 additions, 8 deletionsrust/hg-core/src/dirstate_tree/on_disk.rs
- rust/hg-core/src/dirstate_tree/owning.rs 3 additions, 3 deletionsrust/hg-core/src/dirstate_tree/owning.rs
- rust/hg-core/src/dirstate_tree/status.rs 55 additions, 61 deletionsrust/hg-core/src/dirstate_tree/status.rs
- rust/hg-core/src/discovery.rs 9 additions, 9 deletionsrust/hg-core/src/discovery.rs
- rust/hg-core/src/filepatterns.rs 8 additions, 8 deletionsrust/hg-core/src/filepatterns.rs
- rust/hg-core/src/lock.rs 3 additions, 1 deletionrust/hg-core/src/lock.rs
- rust/hg-core/src/matchers.rs 13 additions, 15 deletionsrust/hg-core/src/matchers.rs
- rust/hg-core/src/narrow.rs 5 additions, 3 deletionsrust/hg-core/src/narrow.rs
- rust/hg-core/src/operations/cat.rs 3 additions, 5 deletionsrust/hg-core/src/operations/cat.rs
- rust/hg-core/src/repo.rs 8 additions, 12 deletionsrust/hg-core/src/repo.rs
Loading
-
mentioned in commit b57c02d91f75
-
mentioned in merge request !492 (merged)
-
mentioned in commit 661a7fc96fb6
-
mentioned in commit 0cc19a53cef4
Please register or sign in to comment