From 298499207ba82afdd3e651a0b4c3d170b9e0a155 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 2 Apr 2026 06:45:44 +0100 Subject: [PATCH] main: permit dead code (no warnings) when building. I want my build to tell me if there's anything wrong with it. Dead Code warnings distract me from checking that. OTOH when I'm running Clippy I want it to catch everything. Hence this change. --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index e569d9e..4bb6bb1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// permit dead code when not using clippy +#![cfg_attr(not(clippy), allow(dead_code))] + mod card; mod helper; mod modes;