Skip to content

Commit df6bdb6

Browse files
authored
silence new clippy warning in autogenerated code in Rust 1.79 (#209)
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent 99ba4ff commit df6bdb6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ jobs:
3838
components: clippy
3939
targets: wasm32-unknown-unknown
4040
# lint the main library workspace excluding the wasm feature
41-
- run: cargo clippy --features plotly_ndarray,plotly_image,kaleido -- -D warnings
41+
# Rust 1.79 generates a new lint in autogenrated code:
42+
# Added clippy allow at the command line until it is fixed. See: https://github.com/rust-lang/rust-clippy/issues/12643 and https://github.com/TedDriggs/darling/issues/293
43+
- run: cargo clippy --features plotly_ndarray,plotly_image,kaleido -- -D warnings -Aclippy::manual_unwrap_or_default
4244
# lint the plotly library with wasm enabled
43-
- run: cargo clippy --package plotly --features wasm --target wasm32-unknown-unknown -- -D warnings
45+
- run: cargo clippy --package plotly --features wasm --target wasm32-unknown-unknown -- -D warnings -Aclippy::manual_unwrap_or_default
4446
# lint the non-wasm examples
45-
- run: cd ${{ github.workspace }}/examples && cargo clippy --workspace --exclude "wasm*" -- -D warnings
47+
- run: cd ${{ github.workspace }}/examples && cargo clippy --workspace --exclude "wasm*" -- -D warnings -Aclippy::manual_unwrap_or_default
4648
# lint the wasm examples
47-
- run: cd ${{ github.workspace }}/examples && cargo clippy --target wasm32-unknown-unknown --package "wasm*"
49+
- run: cd ${{ github.workspace }}/examples && cargo clippy --target wasm32-unknown-unknown --package "wasm*" -- -Aclippy::manual_unwrap_or_default
4850

4951
semver:
5052
name: semver

0 commit comments

Comments
 (0)