summaryrefslogtreecommitdiff
path: root/utils/tcp_connection/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-20 21:54:29 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-20 21:57:49 +0800
commit9a60751a901f568bdeb154c4115235d4f3a0f8b9 (patch)
tree65df323f6478bae51473a3d6471df39a596ce9c5 /utils/tcp_connection/src
parenta9e5c086584d3e697188be7003f564e7e2137135 (diff)
Apply clippy suggestions and improve code quality
Diffstat (limited to 'utils/tcp_connection/src')
-rw-r--r--utils/tcp_connection/src/instance_challenge.rs2
1 files changed, 1 insertions, 1 deletions
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