aboutsummaryrefslogtreecommitdiffstats
path: root/src/handshake/peer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handshake/peer.rs')
-rw-r--r--src/handshake/peer.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/handshake/peer.rs b/src/handshake/peer.rs
index 6f0f5af..4c6f2fd 100644
--- a/src/handshake/peer.rs
+++ b/src/handshake/peer.rs
@@ -55,19 +55,19 @@ pub enum State {
impl Drop for State {
fn drop(&mut self) {
match self {
- State::InitiationSent{hs, ck, ..} => {
+ State::InitiationSent { hs, ck, .. } => {
// eph_sk already cleared by dalek-x25519
hs.clear();
ck.clear();
- },
- _ => ()
+ }
+ _ => (),
}
}
}
impl<T> Peer<T>
where
- T: Copy,
+ T: Clone,
{
pub fn new(
identifier: T, // external identifier
@@ -141,4 +141,4 @@ where
*last_initiation_consumption = Some(Instant::now());
Ok(())
}
-} \ No newline at end of file
+}