From e27decc5ba1fd7b34af2314527d73433cc3fc604 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Tue, 31 Dec 2024 14:33:44 -0800 Subject: [PATCH] Fix clippy Signed-off-by: Maksym Pavlenko --- crates/runc/src/options.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/runc/src/options.rs b/crates/runc/src/options.rs index 62785388..3c3b06fc 100644 --- a/crates/runc/src/options.rs +++ b/crates/runc/src/options.rs @@ -485,7 +485,7 @@ mod tests { fn create_opts_test() { assert_eq!( CreateOpts::new().args().expect(ARGS_FAIL_MSG), - vec![String::new(); 0] + Vec::::new() ); assert_eq!( @@ -536,7 +536,7 @@ mod tests { fn exec_opts_test() { assert_eq!( ExecOpts::new().args().expect(ARGS_FAIL_MSG), - vec![String::new(); 0] + Vec::::new() ); assert_eq!( @@ -576,10 +576,7 @@ mod tests { #[test] fn delete_opts_test() { - assert_eq!( - DeleteOpts::new().force(false).args(), - vec![String::new(); 0] - ); + assert_eq!(DeleteOpts::new().force(false).args(), Vec::::new()); assert_eq!( DeleteOpts::new().force(true).args(), @@ -589,7 +586,7 @@ mod tests { #[test] fn kill_opts_test() { - assert_eq!(KillOpts::new().all(false).args(), vec![String::new(); 0]); + assert_eq!(KillOpts::new().all(false).args(), Vec::::new()); assert_eq!(KillOpts::new().all(true).args(), vec!["--all".to_string()],); }