Skip to content

Commit

Permalink
misc: Remove redundant return statement
Browse files Browse the repository at this point in the history
As clippy of rust-toolchain version 1.83.0-beta.1 suggests, remove
redundant `return` statement to keep code clean.

Signed-off-by: Ruoqing He <[email protected]>
  • Loading branch information
RuoqingHe authored and rbradford committed Oct 18, 2024
1 parent 0aab960 commit 416fe5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8216,7 +8216,7 @@ mod windows {
.output()
.expect("ps command failed")
.stdout;
return String::from_utf8_lossy(&out).matches("vcpu").count() as u8;
String::from_utf8_lossy(&out).matches("vcpu").count() as u8
}

fn netdev_ctrl_threads_count(pid: u32) -> u8 {
Expand Down

0 comments on commit 416fe5e

Please sign in to comment.