summaryrefslogtreecommitdiffstats
path: root/src/handshake/device.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handshake/device.rs')
-rw-r--r--src/handshake/device.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/handshake/device.rs b/src/handshake/device.rs
index d29c41b..f439414 100644
--- a/src/handshake/device.rs
+++ b/src/handshake/device.rs
@@ -202,7 +202,10 @@ where
rng: &mut R, // rng instance to sample randomness from
msg: &[u8], // message buffer
src: Option<&'a S>, // optional source endpoint, set when "under load"
- ) -> Result<Output<T>, HandshakeError> where &'a S: Into<&'a SocketAddr> {
+ ) -> Result<Output<T>, HandshakeError>
+ where
+ &'a S: Into<&'a SocketAddr>,
+ {
match msg.get(0) {
Some(&TYPE_INITIATION) => {
// parse message