cargo-fix

Crates.iocargo-fix
lib.rscargo-fix
version0.4.1
sourcesrc
created_at2018-03-21 20:31:38.893589
updated_at2018-06-08 11:10:05.894514
descriptionAutomatically apply the suggestions made by rustc
homepage
repositoryhttps://github.com/rust-lang-nursery/rustfix
max_upload_size
id56792
size77,885
rustfix (github:rust-lang-nursery:rustfix)

documentation

https://docs.rs/rustfix

README

cargo fix

Run cargo fix and get better code.

Build Status Build status

Installation

Assuming you have a recent Rust toolchain installed and active, run cargo install cargo-fix.

Usage

  1. Navigate to a cargo project
    1. Make sure you use version control and have a clean working directory (so you can easily see the changes rustfix makes later on)
    2. Make sure your project compiles
  2. Run cargo fix
  3. ??? (wait for it to compile and fix your code)
  4. PROFIT!

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 368

cargo fmt