Skip to content

cargo clippy --fix -- D warnings #9979

Answered by flip1995
hombit asked this question in Q&A
Nov 29, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

-D warnings doesn't really make sense with fix. This is because when you use --fix you want that your code gets fixed and rustfix doesn't care if it fixes warnings or errors.

I might just not get the use case here. As a workaround, I can suggest to run cargo clippy -- -Dwarnings after running cargo clippy --fix.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hombit
Comment options

@flip1995
Comment options

@hombit
Comment options

@flip1995
Comment options

Answer selected by hombit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants