Hacker News new | ask | show | jobs
by awesomepeter 2255 days ago
Seems like it would be beneficial if codemods would accompany such features if possible.. is it possible in rust?
1 comments

There are several ways of doing this, yes. Including one provided by the Rust project itself, “rustfix.”
Is "rustfix" what is running behind-the-scenes when you run "cargo fix" or is it something distinct?
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.)
Yes, it is.
yes, cargo fix uses rustfix