deny warnings on CI and check.sh with -D warnings (#1710)

This commit is contained in:
Emil Ernerfeldt 2022-06-02 21:06:12 +02:00 committed by GitHub
parent f8ce51e5aa
commit 083e20474b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -6,7 +6,7 @@ env:
# This is required to enable the web_sys clipboard API which eframe web uses # This is required to enable the web_sys clipboard API which eframe web uses
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html # https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html # https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html
RUSTFLAGS: --cfg=web_sys_unstable_apis RUSTFLAGS: --cfg=web_sys_unstable_apis -D warnings
RUSTDOCFLAGS: -D warnings RUSTDOCFLAGS: -D warnings
jobs: jobs:

View file

@ -6,6 +6,7 @@ set -eux
# Checks all tests, lints etc. # Checks all tests, lints etc.
# Basically does what the CI does. # Basically does what the CI does.
RUSTFLAGS="-D warnings"
RUSTDOCFLAGS="-D warnings" # https://github.com/emilk/egui/pull/1454 RUSTDOCFLAGS="-D warnings" # https://github.com/emilk/egui/pull/1454
cargo check --workspace --all-targets cargo check --workspace --all-targets