diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-26 18:45:20 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-26 18:45:20 +0200 |
commit | 97e5e1eacca683880896d698a6f7c090cfbdae02 (patch) | |
tree | 88ea971be0a75d30cdf7db3f585b2ac1f5366dad /src/noise.rs | |
parent | Move parser code to zerocopy (diff) | |
download | wireguard-rs-97e5e1eacca683880896d698a6f7c090cfbdae02.tar.xz wireguard-rs-97e5e1eacca683880896d698a6f7c090cfbdae02.zip |
Only impl. fmt for messages in test
Diffstat (limited to '')
-rw-r--r-- | src/noise.rs | 6 |
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)?; |