From 416fe5eaac3ffdefa6d2f333fa1cea74e900b015 Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Fri, 18 Oct 2024 17:48:51 +0800 Subject: [PATCH] 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 --- tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index dcdd552a0..01028316c 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -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 {