Skip to content

Commit 83cfd28

Browse files
committed
travis: switch to rustfmt-preview for style checks
1 parent 945f2b4 commit 83cfd28

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111
- RUSTFLAGS=-Dwarnings
1212
# Versions known to work with pinned nightly.
1313
- CLIPPY_VERSION=0.0.180
14-
- RUSTFMT_VERSION=0.3.6
1514

1615
before_script:
1716
- export PATH=$HOME/.cargo/bin:$PATH
@@ -23,12 +22,12 @@ before_script:
2322
fi
2423
- |
2524
if [[ $TRAVIS_RUST_VERSION =~ nightly-* ]]; then
25+
rustup component add rustfmt-preview
2626
cargo install-update -i "clippy:$CLIPPY_VERSION"
27-
cargo install-update -i "rustfmt-nightly:$RUSTFMT_VERSION"
2827
fi
2928
script:
30-
- cargo build && cargo test
3129
- |
3230
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo fmt -- --write-mode diff
31+
- cargo build && cargo test
3332
- |
3433
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo clippy

src/cli.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ pub enum Crater {
7070
env: DockerEnv,
7171
},
7272

73-
#[structopt(name = "create-lists", about = "create all the lists of crates")] CreateLists,
73+
#[structopt(name = "create-lists", about = "create all the lists of crates")]
74+
CreateLists,
7475

7576
#[structopt(name = "define-ex", about = "define an experiment")]
7677
DefineEx {
@@ -107,10 +108,7 @@ pub enum Crater {
107108
},
108109

109110
#[structopt(name = "copy-ex", about = "copy all data from one experiment to another")]
110-
CopyEx {
111-
ex1: Ex,
112-
ex2: Ex,
113-
},
111+
CopyEx { ex1: Ex, ex2: Ex },
114112

115113
#[structopt(name = "delete-ex", about = "delete shared data for experiment")]
116114
DeleteEx {
@@ -174,7 +172,8 @@ pub enum Crater {
174172
s3_prefix: Option<report::S3Prefix>,
175173
},
176174

177-
#[structopt(name = "serve-report", about = "serve report")] Serve,
175+
#[structopt(name = "serve-report", about = "serve report")]
176+
Serve,
178177
}
179178

180179
impl Crater {

0 commit comments

Comments
 (0)