From f36c540706817545e72b816f9e210096a3891e1c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 13 Jul 2025 21:45:50 -0700 Subject: [PATCH] Ignore new dead code warning from rustc nightly-2025-07-14 warning: struct `Placeholder` is never constructed --> src/display.rs:63:16 | 63 | pub struct Placeholder; | ^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default --- src/display.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display.rs b/src/display.rs index 7b2bf1c..e544657 100644 --- a/src/display.rs +++ b/src/display.rs @@ -60,6 +60,7 @@ mod placeholder { use super::{AsDisplay, Sealed}; use core::fmt::{self, Display}; + #[allow(dead_code)] pub struct Placeholder; impl<'a> AsDisplay<'a> for Placeholder {