Closed MikkelPaulson closed 4 months ago
Apparently rustfmt tests the entire code tree when pointed at lib.rs, so all files were being checked twice (except lib itself, I guess). The git ls-files song and dance was unnecessary, just point it at {lib,main}.rs and let 'er rip.
lib.rs
git ls-files
{lib,main}.rs
86b3dbc
View logs
$ git ls-files '*.rs' | wc -l 139 $ rustfmt --check --edition 2021 --verbose */src/{lib,main}.rs */tests/*.rs | grep 'rs$' | wc -l 139
Apparently rustfmt tests the entire code tree when pointed at
lib.rs
, so all files were being checked twice (except lib itself, I guess). Thegit ls-files
song and dance was unnecessary, just point it at{lib,main}.rs
and let 'er rip.