misc: Remove redundant return statement

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 <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He 2024-10-18 17:48:51 +08:00 committed by Rob Bradford
parent 0aab960bf1
commit 416fe5eaac

View File

@ -8216,7 +8216,7 @@ mod windows {
.output() .output()
.expect("ps command failed") .expect("ps command failed")
.stdout; .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 { fn netdev_ctrl_threads_count(pid: u32) -> u8 {