diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d5c04057..6dccf7db 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,7 +6,7 @@ env: # 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/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 jobs: diff --git a/sh/check.sh b/sh/check.sh index 1161c41d..adb42ac0 100755 --- a/sh/check.sh +++ b/sh/check.sh @@ -6,6 +6,7 @@ set -eux # Checks all tests, lints etc. # Basically does what the CI does. +RUSTFLAGS="-D warnings" RUSTDOCFLAGS="-D warnings" # https://github.com/emilk/egui/pull/1454 cargo check --workspace --all-targets