mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-23 14:08:31 +00:00
agent: clear redundant_field_names clippy warning
add `#![allow(clippy::redundant_field_names)]` can skip check `protocols` package, and fix redundant_field_names in other packages. Signed-off-by: bin liu <bin@hyper.sh> Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
parent
8d16767bec
commit
cab530cb1f
@ -3,6 +3,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
//
|
//
|
||||||
#![allow(bare_trait_objects)]
|
#![allow(bare_trait_objects)]
|
||||||
|
#![allow(clippy::redundant_field_names)]
|
||||||
|
|
||||||
pub mod agent;
|
pub mod agent;
|
||||||
pub mod agent_ttrpc;
|
pub mod agent_ttrpc;
|
||||||
@ -11,11 +12,3 @@ pub mod health;
|
|||||||
pub mod health_ttrpc;
|
pub mod health_ttrpc;
|
||||||
pub mod oci;
|
pub mod oci;
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
#[test]
|
|
||||||
fn it_works() {
|
|
||||||
assert_eq!(2 + 2, 4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -825,7 +825,7 @@ fn build_blkio_stats_entry(major: i16, minor: i16, op: &str, value: u64) -> Blki
|
|||||||
major: major as u64,
|
major: major as u64,
|
||||||
minor: minor as u64,
|
minor: minor as u64,
|
||||||
op: op.to_string(),
|
op: op.to_string(),
|
||||||
value: value,
|
value,
|
||||||
unknown_fields: UnknownFields::default(),
|
unknown_fields: UnknownFields::default(),
|
||||||
cached_size: CachedSize::default(),
|
cached_size: CachedSize::default(),
|
||||||
}
|
}
|
||||||
|
@ -173,9 +173,9 @@ impl<'a> BareMount<'a> {
|
|||||||
BareMount {
|
BareMount {
|
||||||
source: s,
|
source: s,
|
||||||
destination: d,
|
destination: d,
|
||||||
fs_type: fs_type,
|
fs_type,
|
||||||
flags: flags,
|
flags,
|
||||||
options: options,
|
options,
|
||||||
logger: logger.new(o!("subsystem" => "baremount")),
|
logger: logger.new(o!("subsystem" => "baremount")),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1746,7 +1746,7 @@ mod tests {
|
|||||||
|
|
||||||
let ctx = TtrpcContext {
|
let ctx = TtrpcContext {
|
||||||
fd: -1,
|
fd: -1,
|
||||||
mh: mh,
|
mh,
|
||||||
res_tx: tx,
|
res_tx: tx,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ impl Sandbox {
|
|||||||
sender: None,
|
sender: None,
|
||||||
rtnl: Some(RtnlHandle::new(NETLINK_ROUTE, 0).unwrap()),
|
rtnl: Some(RtnlHandle::new(NETLINK_ROUTE, 0).unwrap()),
|
||||||
hooks: None,
|
hooks: None,
|
||||||
event_rx: event_rx,
|
event_rx,
|
||||||
event_tx: tx,
|
event_tx: tx,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user