Open winksaville opened 3 years ago
Added issue #736 to trapaulin repo.
Added issue #736 to trapaulin repo.
Semi fixed as tarpaulin now automatically cleans so just do a cargo tarpaulin
.
BUT you must do a cargo clean
before doing any subsequent cargo build|run|test
.
What I do now is use a trivial shell script cargo-precommit
:
echo clippy ; cargo clippywink@3900x:~/prgs/rust/projects/binance-auto-sell (main)
$ cat ./cargo-pre-commit
#!/usr/bin/env bash
set -e
echo check ; cargo check
echo fmt ; cargo fmt
echo test ; cargo test
echo tarpaulin ; cargo tarpaulin
echo clean ; cargo clean
echo clippy ; cargo clippy
Which does a cargo clean
before cargo clippy
as the last operation, so I don't need to worry about it.
If you copy it to ~/.cargo/bin/:
wink@3900x:~/prgs/rust/projects/binance-auto-sell (main)
$ cp ./cargo-precommit ~/.cargo/bin/
And then just do a cargo pre-commit
before commiting:
wink@3900x:~/prgs/rust/projects/binance-auto-sell (main)
$ cp ./cargo-precommit ~/.cargo/bin/
...
Here is the error I'm seeing:
After a
cargo clean
I see: