From ed374eff47a92596b64c00929b3436293ae14875 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Thu, 21 Nov 2024 12:32:08 +0700 Subject: [PATCH] deny rust warnings --- crates/builder/src/pages.rs | 2 +- nci.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/builder/src/pages.rs b/crates/builder/src/pages.rs index b7c65a3e..f6a3f32b 100644 --- a/crates/builder/src/pages.rs +++ b/crates/builder/src/pages.rs @@ -8,5 +8,5 @@ use crate::mob::Mob; pub(crate) fn all(mobs: Vec) -> impl Iterator { [index::page(&mobs), add::page()] .into_iter() - .chain(mobs.into_iter().map(|m| Mob::page(m))) + .chain(mobs.into_iter().map(Mob::page)) } diff --git a/nci.nix b/nci.nix index 33e77cf2..55ec718f 100644 --- a/nci.nix +++ b/nci.nix @@ -11,6 +11,7 @@ nci.projects.default = { numtideDevshell = "default"; path = ./.; + drvConfig.env.RUSTFLAGS = "--deny warnings"; }; devshells.default = {