chore: deny warnings on github actions (#814)

Enabling on all except for checking examples to start. I'll fix those
and add it as a follow up.

Closes #795
This commit is contained in:
Mark Catley
2023-04-08 01:28:48 +12:00
committed by GitHub
parent 1187a506dd
commit 2170be8e01
6 changed files with 12 additions and 4 deletions

View File

@@ -42,4 +42,4 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Run cargo check on all examples
run: cargo make check-stable
run: cargo make --profile=github-actions check-stable

View File

@@ -42,4 +42,4 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Run cargo check on all libraries
run: cargo make check
run: cargo make --profile=github-actions check

View File

@@ -42,4 +42,4 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Run tests with all features
run: cargo make test
run: cargo make --profile=github-actions test

View File

@@ -74,3 +74,9 @@ dependencies = ["test-all"]
command = "cargo"
args = ["+nightly", "test-all-features"]
install_crate = "cargo-all-features"
[env]
RUSTFLAGS=""
[env.github-actions]
RUSTFLAGS="-D warnings"

View File

@@ -243,7 +243,7 @@ pub fn set_timeout_with_handle(
pub fn debounce<T: 'static>(
cx: Scope,
delay: Duration,
mut cb: impl FnMut(T) + 'static,
#[allow(unused_mut)] mut cb: impl FnMut(T) + 'static,
) -> impl FnMut(T) {
use std::{
cell::{Cell, RefCell},

View File

@@ -21,6 +21,7 @@ pub fn Redirect<P>(
path: P,
/// Navigation options to be used on the client side.
#[prop(optional)]
#[allow(unused)]
options: Option<NavigateOptions>,
) -> impl IntoView
where
@@ -36,6 +37,7 @@ where
}
// redirect on the client
else {
#[allow(unused)]
let navigate = use_navigate(cx);
#[cfg(any(feature = "csr", feature = "hydrate"))]
leptos::request_animation_frame(move || {