Hi everyone!
So we can put some code in our documentation using //! ```rust
and even test that code with cargo test
but what about running cargo clippy
and cargo check
?
I have some examples in my documentation but I realize that, with it evolving, I end up having some imports not used BUT cannot have a cargo check
error to automate this detection. Is there a way to do that?
Thank you!
You can run cargo check --tests
.
Unfortunately, it doesn't seem to be enough.