rust-analyzer/xtask/src
Yuri Astrakhan d3dbf9c194 Moar linting: needless_borrow, let_unit_value, ...
* There are a few needless borrows that don't seem to be needed. I even did a quick assembly comparison and posted a q to stackoveflow on it. See [here](https://stackoverflow.com/questions/74910196/advantages-of-pass-by-ref-val-with-impl-intoiteratoritem-impl-asrefstr)
* removed several `let _ = ...` when they don't look necessary (even a few ones that were not suggested by clippy (?))
* there were a few `then(|| ctor{})` that clippy suggested to replace with `then_some(ctor{})` -- seems reasonable?
* some unneeded assignment+return - keep the code a bit leaner
* a few `writeln!` instead of `write!`, or even consolidate write!
* a nice optimization to use `ch.is_ascii_digit` instead of `ch.is_digit(10)`
2022-12-25 05:07:47 -05:00
..
publish Make minor improvements and cleanups 2022-12-15 14:52:23 +09:00
release Moar linting: needless_borrow, let_unit_value, ... 2022-12-25 05:07:47 -05:00
dist.rs Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
flags.rs Implement xtask publish-release-notes to publish release notes on GitHub Releases 2022-12-11 23:49:28 +09:00
install.rs Moar linting: needless_borrow, let_unit_value, ... 2022-12-25 05:07:47 -05:00
main.rs Implement xtask publish-release-notes to publish release notes on GitHub Releases 2022-12-11 23:49:28 +09:00
metrics.rs Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
publish.rs Make minor improvements and cleanups 2022-12-15 14:52:23 +09:00
release.rs Moar linting: needless_borrow, let_unit_value, ... 2022-12-25 05:07:47 -05:00