mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 00:02:01 +00:00
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 <steven@uk.ibm.com>
This commit is contained in:
parent
d75a0ccbd1
commit
71fffb8736
@ -74,6 +74,7 @@ struct Driver {
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct DriverInfo {
|
||||
#[allow(dead_code)]
|
||||
pub driver: String,
|
||||
pub bus_info: String,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user