diff --git a/src/agent/protocols/src/lib.rs b/src/agent/protocols/src/lib.rs index 5637a648ab..652d541e8f 100644 --- a/src/agent/protocols/src/lib.rs +++ b/src/agent/protocols/src/lib.rs @@ -3,6 +3,7 @@ // SPDX-License-Identifier: Apache-2.0 // #![allow(bare_trait_objects)] +#![allow(clippy::redundant_field_names)] pub mod agent; pub mod agent_ttrpc; @@ -11,11 +12,3 @@ pub mod health; pub mod health_ttrpc; pub mod oci; pub mod types; - -#[cfg(test)] -mod tests { - #[test] - fn it_works() { - assert_eq!(2 + 2, 4); - } -} diff --git a/src/agent/rustjail/src/cgroups/fs/mod.rs b/src/agent/rustjail/src/cgroups/fs/mod.rs index 160a991e7b..2847bb6315 100644 --- a/src/agent/rustjail/src/cgroups/fs/mod.rs +++ b/src/agent/rustjail/src/cgroups/fs/mod.rs @@ -833,7 +833,7 @@ fn build_blkio_stats_entry(major: i16, minor: i16, op: &str, value: u64) -> Blki major: major as u64, minor: minor as u64, op: op.to_string(), - value: value, + value, unknown_fields: UnknownFields::default(), cached_size: CachedSize::default(), } diff --git a/src/agent/src/mount.rs b/src/agent/src/mount.rs index 66d1673114..d4180ce4d2 100644 --- a/src/agent/src/mount.rs +++ b/src/agent/src/mount.rs @@ -173,9 +173,9 @@ impl<'a> BareMount<'a> { BareMount { source: s, destination: d, - fs_type: fs_type, - flags: flags, - options: options, + fs_type, + flags, + options, logger: logger.new(o!("subsystem" => "baremount")), } } diff --git a/src/agent/src/rpc.rs b/src/agent/src/rpc.rs index 565e0ba228..caa2f7f3f8 100644 --- a/src/agent/src/rpc.rs +++ b/src/agent/src/rpc.rs @@ -1673,7 +1673,7 @@ mod tests { let ctx = TtrpcContext { fd: -1, - mh: mh, + mh, res_tx: tx, }; diff --git a/src/agent/src/sandbox.rs b/src/agent/src/sandbox.rs index 83fb0123f3..af8c82c44d 100644 --- a/src/agent/src/sandbox.rs +++ b/src/agent/src/sandbox.rs @@ -75,7 +75,7 @@ impl Sandbox { sender: None, rtnl: Some(RtnlHandle::new(NETLINK_ROUTE, 0).unwrap()), hooks: None, - event_rx: event_rx, + event_rx, event_tx: tx, }) }