Fix gateway secure tunnel Clippy warning

This commit is contained in:
RWDai
2026-05-22 10:13:06 +08:00
parent 2e701a90c9
commit b05f2a270a

View File

@@ -338,7 +338,7 @@ fn encrypt_message(
Message::Binary(data) => {
let frame = Frame::decode(bytes::Bytes::from(data.to_vec()))
.map_err(|_| aether_contracts::tunnel_security::TunnelSecurityError::Encrypt)?;
Ok(Message::Binary(codec.encrypt_frame(frame)?.into()))
Ok(Message::Binary(codec.encrypt_frame(frame)?))
}
other => Ok(other),
}