mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
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:
parent
0aab960bf1
commit
416fe5eaac
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user