Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
  • Loading branch information
mxpv committed Dec 31, 2024
1 parent 6ad0a6e commit e27decc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions crates/runc/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ mod tests {
fn create_opts_test() {
assert_eq!(
CreateOpts::new().args().expect(ARGS_FAIL_MSG),
vec![String::new(); 0]
Vec::<String>::new()
);

assert_eq!(
Expand Down Expand Up @@ -536,7 +536,7 @@ mod tests {
fn exec_opts_test() {
assert_eq!(
ExecOpts::new().args().expect(ARGS_FAIL_MSG),
vec![String::new(); 0]
Vec::<String>::new()
);

assert_eq!(
Expand Down Expand Up @@ -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::<String>::new());

assert_eq!(
DeleteOpts::new().force(true).args(),
Expand All @@ -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::<String>::new());

assert_eq!(KillOpts::new().all(true).args(), vec!["--all".to_string()],);
}
Expand Down

0 comments on commit e27decc

Please sign in to comment.