File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11
11
- RUSTFLAGS=-Dwarnings
12
12
# Versions known to work with pinned nightly.
13
13
- CLIPPY_VERSION=0.0.180
14
- - RUSTFMT_VERSION=0.3.6
15
14
16
15
before_script :
17
16
- export PATH=$HOME/.cargo/bin:$PATH
@@ -23,12 +22,12 @@ before_script:
23
22
fi
24
23
- |
25
24
if [[ $TRAVIS_RUST_VERSION =~ nightly-* ]]; then
25
+ rustup component add rustfmt-preview
26
26
cargo install-update -i "clippy:$CLIPPY_VERSION"
27
- cargo install-update -i "rustfmt-nightly:$RUSTFMT_VERSION"
28
27
fi
29
28
script :
30
- - cargo build && cargo test
31
29
- |
32
30
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo fmt -- --write-mode diff
31
+ - cargo build && cargo test
33
32
- |
34
33
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo clippy
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ pub enum Crater {
70
70
env : DockerEnv ,
71
71
} ,
72
72
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 ,
74
75
75
76
#[ structopt( name = "define-ex" , about = "define an experiment" ) ]
76
77
DefineEx {
@@ -107,10 +108,7 @@ pub enum Crater {
107
108
} ,
108
109
109
110
#[ 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 } ,
114
112
115
113
#[ structopt( name = "delete-ex" , about = "delete shared data for experiment" ) ]
116
114
DeleteEx {
@@ -174,7 +172,8 @@ pub enum Crater {
174
172
s3_prefix : Option < report:: S3Prefix > ,
175
173
} ,
176
174
177
- #[ structopt( name = "serve-report" , about = "serve report" ) ] Serve ,
175
+ #[ structopt( name = "serve-report" , about = "serve report" ) ]
176
+ Serve ,
178
177
}
179
178
180
179
impl Crater {
You can’t perform that action at this time.
0 commit comments