mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Add cargo fmt
to CI and delete rustfmt.toml
This commit adds CI to run `cargo fmt` over Cargo itself as well as the internal `crates-io` crate. This should switch Cargo to the "default style" (aka whatever rustfmt spits out) and ensure that we keep it that way via CI. Hopefully this won't be too much of a bother to keep up and running in CI as it should just be a `cargo fmt` away!
This commit is contained in:
parent
1eb4c8f1b4
commit
a13a33c33b
@ -36,6 +36,9 @@ matrix:
|
||||
- cargo doc --no-deps
|
||||
- (cd src/doc && mdbook build --dest-dir ../../target/doc)
|
||||
|
||||
- before_script: rustup component add rustfmt-preview
|
||||
script: cargo fmt -- --write-mode diff
|
||||
|
||||
exclude:
|
||||
- rust: stable
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
disable_all_formatting = true
|
Loading…
x
Reference in New Issue
Block a user