Remove spaces before semicolons (#591)

This commit is contained in:
James Ray
2018-10-29 20:38:32 +11:00
committed by Pierre Krieger
parent 585c90a33c
commit 45cd7db6e9
16 changed files with 65 additions and 65 deletions

View File

@ -324,7 +324,7 @@ where
.and_then(|context| {
// Generate our nonce.
let context = context.with_local()?;
trace!("starting handshake ; local nonce = {:?}", context.state.nonce);
trace!("starting handshake; local nonce = {:?}", context.state.nonce);
Ok(context)
})
.and_then(|context| {
@ -346,7 +346,7 @@ where
return Err(err.into())
},
};
trace!("received proposition from remote ; pubkey = {:?} ; nonce = {:?}",
trace!("received proposition from remote; pubkey = {:?}; nonce = {:?}",
context.state.public_key, context.state.nonce);
Ok((socket, context))
})
@ -436,7 +436,7 @@ where
let remote_exch = match protobuf_parse_from_bytes::<Exchange>(&raw) {
Ok(e) => e,
Err(err) => {
debug!("failed to parse remote's exchange protobuf ; {:?}", err);
debug!("failed to parse remote's exchange protobuf; {:?}", err);
return Err(SecioError::HandshakeParsingFailure);
}
};

View File

@ -306,7 +306,7 @@ impl SecioKeyPair {
SecioKeyPairInner::Secp256k1 { ref private } => {
let secp = secp256k1::Secp256k1::with_caps(secp256k1::ContextFlag::SignOnly);
let pubkey = secp256k1::key::PublicKey::from_secret_key(&secp, private)
.expect("wrong secp256k1 private key ; type safety violated");
.expect("wrong secp256k1 private key; type safety violated");
PublicKey::Secp256k1(pubkey.serialize_vec(&secp, true).to_vec())
}
}