From 9a60751a901f568bdeb154c4115235d4f3a0f8b9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 20 Mar 2026 21:54:29 +0800 Subject: Apply clippy suggestions and improve code quality --- utils/tcp_connection/src/instance_challenge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/tcp_connection') diff --git a/utils/tcp_connection/src/instance_challenge.rs b/utils/tcp_connection/src/instance_challenge.rs index 12fce54..bb1fcf0 100644 --- a/utils/tcp_connection/src/instance_challenge.rs +++ b/utils/tcp_connection/src/instance_challenge.rs @@ -106,7 +106,7 @@ impl ConnectionInstance { rand::TryRng::try_fill_bytes(&mut rng, &mut challenge).map_err(|e| { TcpTargetError::Crypto(format!("Failed to generate random challenge: {}", e)) })?; - return Ok(challenge); + Ok(challenge) } /// Accepts a challenge from the target machine to verify connection security -- cgit