Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
awesomepeter
· 6y ago · 0 comments
Seems like it would be beneficial if codemods would accompany such features if possible.. is it possible in rust?
Comments
[–]
steveklabnik
6y ago
There are several ways of doing this, yes. Including one provided by the Rust project itself, “rustfix.”
[–]
eindiran
6y ago
Is "rustfix" what is running behind-the-scenes when you run "cargo fix" or is it something distinct?
[–]
JoshTriplett
6y ago
Yes, cargo fix just runs rustfix on all the files in your project and passes the same flags cargo does to rustc. (Similarly, cargo fmt runs rustfmt on all the files in your project.)
[–]
steveklabnik
6y ago
Yes, it is.
[–]
Ar-Curunir
6y ago
yes, cargo fix uses rustfix