From 083e20474ba6ff928f608bbb5492018f0f3d2df9 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 2 Jun 2022 21:06:12 +0200 Subject: [PATCH] deny warnings on CI and check.sh with -D warnings (#1710) --- .github/workflows/rust.yml | 2 +- sh/check.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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