File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 28
28
cargo fmt --all --manifest-path $manifest --check
29
29
done
30
30
31
+ # Ensure there are no clippy warnings
32
+ clippy :
33
+ runs-on : ubuntu-latest
34
+ steps :
35
+ - uses : actions/checkout@v3
36
+ - run : rustup update stable && rustup default stable
37
+ - run : rustup component add clippy
38
+ # Only check cargo lib for now
39
+ - run : cargo clippy -p cargo --lib -- -D warnings
40
+
31
41
test :
32
42
runs-on : ${{ matrix.os }}
33
43
env :
Original file line number Diff line number Diff line change 4
4
// Due to some of the default clippy lints being somewhat subjective and not
5
5
// necessarily an improvement, we prefer to not use them at this time.
6
6
#![ allow( clippy:: all) ]
7
+ #![ warn( clippy:: self_named_module_files) ]
7
8
#![ allow( rustdoc:: private_intra_doc_links) ]
8
9
9
10
//! # Cargo as a library
You can’t perform that action at this time.
0 commit comments