Suppress clippy lints not worth fixing
This commit is contained in:
@@ -946,6 +946,7 @@ impl InnerConnection {
|
||||
self.desynchronized
|
||||
}
|
||||
|
||||
#[allow(needless_return)]
|
||||
fn wait_for_ready(&mut self) -> Result<()> {
|
||||
match try!(self.read_message()) {
|
||||
ReadyForQuery { .. } => Ok(()),
|
||||
|
||||
@@ -162,6 +162,7 @@ pub trait WriteMessage {
|
||||
}
|
||||
|
||||
impl<W: Write> WriteMessage for W {
|
||||
#[allow(cyclomatic_complexity)]
|
||||
fn write_message(&mut self, message: &FrontendMessage) -> io::Result<()> {
|
||||
let mut buf = vec![];
|
||||
let mut ident = None;
|
||||
@@ -334,6 +335,7 @@ impl<R: BufRead + StreamOptions> ReadMessage for R {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(cyclomatic_complexity)]
|
||||
fn finish_read_message(&mut self, ident: u8) -> io::Result<BackendMessage> {
|
||||
// subtract size of length value
|
||||
let len = try!(self.read_u32::<BigEndian>()) - mem::size_of::<u32>() as u32;
|
||||
|
||||
@@ -77,6 +77,7 @@ impl<'conn> Statement<'conn> {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(type_complexity)]
|
||||
fn inner_query<'a>(&'a self,
|
||||
portal_name: &str,
|
||||
row_limit: i32,
|
||||
|
||||
Reference in New Issue
Block a user