From: Remi Gacogne Date: Tue, 23 Sep 2025 10:18:30 +0000 (+0200) Subject: dnsdist: Fix 'warning: struct `UnusedStruct` is never constructed' warning X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F16166%2Fhead;p=thirdparty%2Fpdns.git 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 --- diff --git a/pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs b/pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs index 7860963c4..46a09d2b0 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,