File tree Expand file tree Collapse file tree 3 files changed +23
-7
lines changed Expand file tree Collapse file tree 3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,25 @@ jobs:
28
28
command : clean
29
29
- name : run cargo check
30
30
uses : actions-rs/cargo@v1
31
+ env :
32
+ RUSTFLAGS : -D warnings
31
33
with :
32
34
command : clippy
33
35
args : --all-targets
36
+ - name : build
37
+ uses : actions-rs/cargo@v1
38
+ with :
39
+ command : build
40
+ args : --all
34
41
- name : test
35
42
run : ./scripts/nextest.sh
43
+ # - name: check changed files
44
+ # run: bash ./scripts/changed_files.sh
45
+ - name : Doc Tests
46
+ uses : actions-rs/cargo@v1
47
+ with :
48
+ command : test
49
+ args : --doc
36
50
- name : integration test dev environment
37
51
env :
38
52
RUST_LOG : info
41
55
uses : actions-rs/cargo@v1
42
56
with :
43
57
command : test
44
- args : --test integration -- -e cmd
58
+ args : --test integration -- -e cmd
Original file line number Diff line number Diff line change @@ -275,16 +275,16 @@ where
275
275
#[ inline]
276
276
fn evaluate ( & self , feature_version : u64 , env : & E ) -> GasQuantity < Self :: Unit > {
277
277
match self {
278
- Either :: Left ( left) => left. evaluate ( feature_version, env) ,
279
- Either :: Right ( right) => right. evaluate ( feature_version, env) ,
278
+ Self :: Left ( left) => left. evaluate ( feature_version, env) ,
279
+ Self :: Right ( right) => right. evaluate ( feature_version, env) ,
280
280
}
281
281
}
282
282
283
283
#[ inline]
284
284
fn visit ( & self , visitor : & mut impl GasExpressionVisitor ) {
285
285
match self {
286
- Either :: Left ( left) => left. visit ( visitor) ,
287
- Either :: Right ( right) => right. visit ( visitor) ,
286
+ Self :: Left ( left) => left. visit ( visitor) ,
287
+ Self :: Right ( right) => right. visit ( visitor) ,
288
288
}
289
289
}
290
290
}
Original file line number Diff line number Diff line change @@ -68,8 +68,10 @@ pub fn handle_package_commands(
68
68
extended_checks:: configure_extended_checks_for_unit_test ( ) ;
69
69
70
70
let mut build_config = move_args. build_config . clone ( ) ;
71
- build_config. compiler_config . known_attributes =
72
- extended_checks:: get_all_attribute_names ( ) . clone ( ) ;
71
+ build_config
72
+ . compiler_config
73
+ . known_attributes
74
+ . clone_from ( extended_checks:: get_all_attribute_names ( ) ) ;
73
75
c. execute (
74
76
move_args. package_path ,
75
77
build_config,
You can’t perform that action at this time.
0 commit comments