mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 06:41:34 +00:00
Remove spaces before semicolons (#591)
This commit is contained in:
committed by
Pierre Krieger
parent
585c90a33c
commit
45cd7db6e9
@ -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);
|
||||
}
|
||||
};
|
||||
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user