File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
bottlecap/src/bin/bottlecap Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 7676 components : clippy
7777 cache : false
7878 - uses : mozilla-actions/sccache-action@v0.0.9
79+ # We need to do these separately because the fips feature is incompatible with the default feature.
7980 - working-directory : bottlecap
80- run : cargo clippy --workspace --all-features
81+ run : cargo clippy --workspace --features default
82+ - working-directory : bottlecap
83+ run : cargo clippy --workspace --no-default-features --features fips
8184
8285 build-all :
8386 name : Build All
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ cargo clippy:
3939 needs: []
4040 script:
4141 - apt-get update && apt-get install -y --fix-missing --no-install-recommends golang-go
42- - cd bottlecap && cargo clippy --workspace --all-features
42+ - cd bottlecap
43+ # We need to do these separately because the fips feature is incompatible with the default feature.
44+ - cargo clippy --workspace --features default
45+ - cargo clippy --workspace --no-default-features --features fips
4346
4447{ { range $flavor := (ds " flavors" ).flavors } }
4548
Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ fn prepare_client_provider() -> Result<()> {
102102}
103103
104104#[ cfg( not( feature = "fips" ) ) ]
105+ // this is not unnecessary since the fips version can return an error
106+ #[ allow( clippy:: unnecessary_wraps) ]
105107fn prepare_client_provider ( ) -> Result < ( ) > {
106108 // No-op in non-FIPS mode
107109 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments