File tree 3 files changed +10
-2
lines changed
bottlecap/src/bin/bottlecap 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 76
76
components : clippy
77
77
cache : false
78
78
-
uses :
mozilla-actions/[email protected]
79
+ # We need to do these separately because the fips feature is incompatible with the default feature.
79
80
- 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
81
84
82
85
build-all :
83
86
name : Build All
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ cargo clippy:
39
39
needs: []
40
40
script:
41
41
- 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-feature --features fips
43
46
44
47
{ { range $flavor := (ds " flavors" ).flavors } }
45
48
Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ fn prepare_client_provider() -> Result<()> {
102
102
}
103
103
104
104
#[ cfg( not( feature = "fips" ) ) ]
105
+ // this is not unnecessary since the fips version can return an error
106
+ #[ allow( clippy:: unnecessary_wraps) ]
105
107
fn prepare_client_provider ( ) -> Result < ( ) > {
106
108
// No-op in non-FIPS mode
107
109
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments