#fix #version-control #client-server #cargo

archived app cargo-fix

Automatically apply the suggestions made by rustc

4 releases (2 breaking)

Uses old Rust 2015

0.4.1 Jun 8, 2018
0.4.0 May 23, 2018
0.2.0 May 3, 2018
0.1.0 Mar 21, 2018

#768 in #cargo

Download history 19/week @ 2023-10-21 28/week @ 2023-10-28 21/week @ 2023-11-04 24/week @ 2023-11-11 7/week @ 2023-11-18 37/week @ 2023-11-25 19/week @ 2023-12-02 15/week @ 2023-12-09 6/week @ 2023-12-16 19/week @ 2023-12-23 8/week @ 2023-12-30 11/week @ 2024-01-06 10/week @ 2024-01-13 15/week @ 2024-01-20 17/week @ 2024-01-27 10/week @ 2024-02-03

54 downloads per month

Apache-2.0/MIT

33KB
724 lines

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.

Dependencies

~1.4–2.5MB
~49K SLoC