# cargo fix Run `cargo fix` and get better code. [![Build Status](https://travis-ci.org/rust-lang-nursery/rustfix.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/rustfix) [![Build status](https://ci.appveyor.com/api/projects/status/g8ljreo9ryu3s6ee/branch/master?svg=true)](https://ci.appveyor.com/project/rust-lang-libs/rustfix/branch/master) ## 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 - Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or ) - MIT license ([LICENSE-MIT](LICENSE-MIT) or ) 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.