Clippy fixes
This commit is contained in:
parent
a3f611d609
commit
c7055dc665
@ -144,9 +144,8 @@ impl<'a> DatParser<'a> {
|
|||||||
|
|
||||||
fn eof(&mut self) {
|
fn eof(&mut self) {
|
||||||
self.skip_ws();
|
self.skip_ws();
|
||||||
match self.it.next() {
|
if let Some((_, ch)) = self.it.next() {
|
||||||
Some((_, ch)) => panic!("expected eof but got {}", ch),
|
panic!("expected eof but got {}", ch);
|
||||||
None => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,6 +110,7 @@ where
|
|||||||
{
|
{
|
||||||
type Stream = TlsStream<S>;
|
type Stream = TlsStream<S>;
|
||||||
type Error = native_tls::Error;
|
type Error = native_tls::Error;
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
type Future = Pin<
|
type Future = Pin<
|
||||||
Box<dyn Future<Output = Result<(TlsStream<S>, ChannelBinding), native_tls::Error>> + Send>,
|
Box<dyn Future<Output = Result<(TlsStream<S>, ChannelBinding), native_tls::Error>> + Send>,
|
||||||
>;
|
>;
|
||||||
|
@ -132,6 +132,7 @@ where
|
|||||||
{
|
{
|
||||||
type Stream = SslStream<S>;
|
type Stream = SslStream<S>;
|
||||||
type Error = HandshakeError<S>;
|
type Error = HandshakeError<S>;
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
type Future = Pin<
|
type Future = Pin<
|
||||||
Box<dyn Future<Output = Result<(SslStream<S>, ChannelBinding), HandshakeError<S>>> + Send>,
|
Box<dyn Future<Output = Result<(SslStream<S>, ChannelBinding), HandshakeError<S>>> + Send>,
|
||||||
>;
|
>;
|
||||||
|
@ -133,8 +133,8 @@ where
|
|||||||
);
|
);
|
||||||
match r {
|
match r {
|
||||||
Ok(()) => Ok(buf),
|
Ok(()) => Ok(buf),
|
||||||
Err(frontend::BindError::Conversion(e)) => return Err(Error::to_sql(e, error_idx)),
|
Err(frontend::BindError::Conversion(e)) => Err(Error::to_sql(e, error_idx)),
|
||||||
Err(frontend::BindError::Serialization(e)) => return Err(Error::encode(e)),
|
Err(frontend::BindError::Serialization(e)) => Err(Error::encode(e)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user