aboutsummaryrefslogtreecommitdiffstats
path: root/src/noise.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-07-26 18:45:20 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-07-26 18:45:20 +0200
commit97e5e1eacca683880896d698a6f7c090cfbdae02 (patch)
tree88ea971be0a75d30cdf7db3f585b2ac1f5366dad /src/noise.rs
parentMove parser code to zerocopy (diff)
downloadwireguard-rs-97e5e1eacca683880896d698a6f7c090cfbdae02.tar.xz
wireguard-rs-97e5e1eacca683880896d698a6f7c090cfbdae02.zip
Only impl. fmt for messages in test
Diffstat (limited to '')
-rw-r--r--src/noise.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/noise.rs b/src/noise.rs
index 1695627..08935e0 100644
--- a/src/noise.rs
+++ b/src/noise.rs
@@ -376,8 +376,10 @@ pub fn create_response<T: Copy>(
))
}
-pub fn consume_response<T: Copy>(device: &Device<T>, msg: &[u8]) -> Result<Output<T>, HandshakeError> {
-
+pub fn consume_response<T: Copy>(
+ device: &Device<T>,
+ msg: &[u8],
+) -> Result<Output<T>, HandshakeError> {
// parse message
let msg = Response::parse(msg)?;