mirror of https://github.com/ctz/rustls
Fix whitespace
This commit is contained in:
parent
fcdbd35cd1
commit
32858d12c2
|
@ -431,7 +431,7 @@ impl io::Read for ClientSession {
|
|||
if len == 0 && self.connection_at_eof() && self.received_plaintext.len() == 0 {
|
||||
return Err(io::Error::new(io::ErrorKind::ConnectionAborted, "CloseNotify alert received"));
|
||||
}
|
||||
|
||||
|
||||
Ok(len)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -636,7 +636,7 @@ impl Codec for ECParameters {
|
|||
|
||||
fn read(r: &mut Reader) -> Option<ECParameters> {
|
||||
let ct = try_ret!(ECCurveType::read(r));
|
||||
|
||||
|
||||
if ct != ECCurveType::NamedCurve {
|
||||
return None;
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ mod tests {
|
|||
let (mut left, mut right) = (Vec::new(), Vec::new());
|
||||
got.payload.encode(&mut left);
|
||||
expect.payload.encode(&mut right);
|
||||
|
||||
|
||||
assert_eq!(left, right);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue