]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix 'warning: struct `UnusedStruct` is never constructed' warning 16166/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 23 Sep 2025 10:18:30 +0000 (12:18 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 23 Sep 2025 10:18:59 +0000 (12:18 +0200)
```
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 <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-rust-lib/rust-pre-in.rs

index 7860963c48f607b73afa55a878cddd2d83343da6..46a09d2b0e72921827f0cbc760e6b1e0ccf4e326 100644 (file)
@@ -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,