File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -946,6 +946,7 @@ impl InnerConnection {
946
946
self . desynchronized
947
947
}
948
948
949
+ #[ allow( needless_return) ]
949
950
fn wait_for_ready ( & mut self ) -> Result < ( ) > {
950
951
match try!( self . read_message ( ) ) {
951
952
ReadyForQuery { .. } => Ok ( ( ) ) ,
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ pub trait WriteMessage {
162
162
}
163
163
164
164
impl < W : Write > WriteMessage for W {
165
+ #[ allow( cyclomatic_complexity) ]
165
166
fn write_message ( & mut self , message : & FrontendMessage ) -> io:: Result < ( ) > {
166
167
let mut buf = vec ! [ ] ;
167
168
let mut ident = None ;
@@ -334,6 +335,7 @@ impl<R: BufRead + StreamOptions> ReadMessage for R {
334
335
}
335
336
}
336
337
338
+ #[ allow( cyclomatic_complexity) ]
337
339
fn finish_read_message ( & mut self , ident : u8 ) -> io:: Result < BackendMessage > {
338
340
// subtract size of length value
339
341
let len = try!( self . read_u32 :: < BigEndian > ( ) ) - mem:: size_of :: < u32 > ( ) as u32 ;
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ impl<'conn> Statement<'conn> {
77
77
}
78
78
}
79
79
80
+ #[ allow( type_complexity) ]
80
81
fn inner_query < ' a > ( & ' a self ,
81
82
portal_name : & str ,
82
83
row_limit : i32 ,
You can’t perform that action at this time.
0 commit comments