tummychow / git-absorb

git commit --fixup, but automatic
https://crates.io/crates/git-absorb
BSD 3-Clause "New" or "Revised" License
3.35k stars 59 forks source link

Apply cargo clippy lints #108

Closed Pi-Cla closed 4 months ago

Pi-Cla commented 4 months ago

Cargo clippy told me that in a bunch of spots we did not need to pass in references as they would be immediately dereferenced anyways (https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow) and that we could use try_fold() instead of fold() for handling the Option (https://rust-lang.github.io/rust-clippy/master/index.html#/manual_try_fold)