File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 19
19
rustup component add rustfmt --toolchain nightly
20
20
21
21
- name : Run rustfmt
22
- # Delete the generated code so it doesn't get formatted.
23
- # We'll be re-running the generator later, so this is okay.
24
22
run : |
25
- rm -rf src/generated
26
- echo "// empty module for rustfmt" > src/generated.rs
27
23
echo "// empty module for rustfmt" > tests/generated.rs
28
24
rustup run nightly cargo fmt --check
29
- rm src/generated.rs
30
25
rm tests/generated.rs
31
26
32
27
- name : Set up Python
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ mod client_helpers;
56
56
pub mod oauth2;
57
57
58
58
// You need to run the Stone generator to create this module.
59
+ #[ rustfmt:: skip]
59
60
mod generated;
60
61
pub use generated:: * ;
61
62
Original file line number Diff line number Diff line change 1
1
#![ warn( rust_2018_idioms) ]
2
2
3
+ #[ rustfmt:: skip]
3
4
mod generated; // You need to run the Stone generator to create this module.
You can’t perform that action at this time.
0 commit comments