mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
Fix gateway secure tunnel Clippy warning
This commit is contained in:
@@ -338,7 +338,7 @@ fn encrypt_message(
|
|||||||
Message::Binary(data) => {
|
Message::Binary(data) => {
|
||||||
let frame = Frame::decode(bytes::Bytes::from(data.to_vec()))
|
let frame = Frame::decode(bytes::Bytes::from(data.to_vec()))
|
||||||
.map_err(|_| aether_contracts::tunnel_security::TunnelSecurityError::Encrypt)?;
|
.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),
|
other => Ok(other),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user