From 5462472102f10798588d634cfa9adb949e11b296 Mon Sep 17 00:00:00 2001 From: Lin Yinfeng Date: Sun, 29 Dec 2024 23:04:11 +0800 Subject: [PATCH] Cleanup and fix --- flake.nix | 7 ++++++- src/main.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 82ff616..96dddf3 100644 --- a/flake.nix +++ b/flake.nix @@ -76,7 +76,12 @@ inherit (self'.packages) angrr; doc = craneLib.cargoDoc commonArgs; fmt = craneLib.cargoFmt { inherit src; }; - nextest = craneLib.cargoNextest commonArgs; + nextest = craneLib.cargoNextest ( + commonArgs + // { + cargoNextestExtraArgs = lib.escapeShellArgs [ "--no-tests=warn" ]; + } + ); clippy = craneLib.cargoClippy ( commonArgs // { cargoClippyExtraArgs = "--all-targets -- --deny warnings"; } ); diff --git a/src/main.rs b/src/main.rs index b1cef62..4d432a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -290,7 +290,7 @@ impl RunContext { } } -impl<'c> ToRemove<'c> { +impl ToRemove<'_> { fn options(&self) -> &RunOptions { &self.context.options }