Skip to content

Commit

Permalink
args: Eliminate compare to 0 clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Vachharajani <manish@githedgehog.com>
  • Loading branch information
mvachhar committed Feb 13, 2025
1 parent b9c3e59 commit 7304185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataplane/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl CmdArgs {
}

// To be removed
if self.allow.len() == 0 {
if self.allow.is_empty() {
out.push("--allow".to_string());
out.push("0000:01:00.0,dv_flow_en=1".to_string());
}
Expand Down

0 comments on commit 7304185

Please sign in to comment.