From 33a56803281ec4ec84fbe61919e9c825f1f446f7 Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 1 Aug 2024 11:28:26 +0200 Subject: [PATCH] Hide `cargo build` warnings if there is no output --- src/exercise.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exercise.rs b/src/exercise.rs index 605d5f10..8a040613 100644 --- a/src/exercise.rs +++ b/src/exercise.rs @@ -103,7 +103,7 @@ pub trait RunnableExercise { args: &[], bin_name, description: "cargo build …", - hide_warnings: false, + hide_warnings: output.is_none(), target_dir, output: output.as_deref_mut(), dev,