From 71fffb873634d09a1c5b2aa44c582d5ccb0e8288 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Thu, 30 Jan 2025 16:37:00 +0000 Subject: [PATCH] runtime-rs: Allow dead code Clippy errors with: ``` error: field `driver` is never read --> crates/resource/src/network/utils/link/driver_info.rs:77:9 | 76 | pub struct DriverInfo { | ---------- field in this struct 77 | pub driver: String, | ^^^^^^ ``` We set this, but never read it, so clippy is correct, but I'm not sure if it's useful for logging, or other purposes, so I'll allow it for now. Signed-off-by: stevenhorsman --- .../crates/resource/src/network/utils/link/driver_info.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime-rs/crates/resource/src/network/utils/link/driver_info.rs b/src/runtime-rs/crates/resource/src/network/utils/link/driver_info.rs index a7269d013a..5e68d8f5d6 100644 --- a/src/runtime-rs/crates/resource/src/network/utils/link/driver_info.rs +++ b/src/runtime-rs/crates/resource/src/network/utils/link/driver_info.rs @@ -74,6 +74,7 @@ struct Driver { #[derive(Debug, Clone)] pub struct DriverInfo { + #[allow(dead_code)] pub driver: String, pub bus_info: String, }