From 7b4856e915e32ddca5bc06bf71125294cb062d89 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 23 Sep 2025 12:18:30 +0200 Subject: [PATCH] dnsdist: Fix 'warning: struct `UnusedStruct` is never constructed' warning ``` warning: struct `UnusedStruct` is never constructed --> src/lib.rs:10:8 | 10 | struct UnusedStruct {} | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default ``` The warning that this struct was introduced to fix seems to be gone anyway. Signed-off-by: Remi Gacogne --- pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs b/pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs index 7860963c48..46a09d2b0e 100644 --- a/pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs +++ b/pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs @@ -3,10 +3,6 @@ use serde::{Deserialize, Serialize}; mod helpers; use helpers::*; -// Suppresses "Deserialize unused" warning -#[derive(Deserialize, Serialize)] -struct UnusedStruct {} - #[derive(Debug)] pub struct ValidationError { msg: String, -- 2.47.3