@@ -207,7 +207,7 @@ pub struct PostgresCancelData {
207207/// that connection.
208208pub fn cancel_query ( url : & str , ssl : & SslMode , data : PostgresCancelData )
209209 -> Option < PostgresConnectError > {
210- let Url { host, port, _ } : Url = match FromStr :: from_str ( url) {
210+ let Url { host, port, .. } : Url = match FromStr :: from_str ( url) {
211211 Some ( url) => url,
212212 None => return Some ( InvalidUrl )
213213 } ;
@@ -339,7 +339,7 @@ impl InnerPostgresConnection {
339339 user,
340340 path,
341341 query : args,
342- _
342+ ..
343343 } : Url = match FromStr :: from_str ( url) {
344344 Some ( url) => url,
345345 None => return Err ( InvalidUrl )
@@ -394,7 +394,7 @@ impl InnerPostgresConnection {
394394 conn. cancel_data . process_id = process_id;
395395 conn. cancel_data . secret_key = secret_key;
396396 }
397- ReadyForQuery { _ } => break ,
397+ ReadyForQuery { .. } => break ,
398398 ErrorResponse { fields } =>
399399 return Err ( DbError ( PostgresDbError :: new ( fields) ) ) ,
400400 _ => unreachable ! ( )
@@ -539,7 +539,7 @@ impl InnerPostgresConnection {
539539
540540 fn wait_for_ready ( & mut self ) {
541541 match self . read_message ( ) {
542- ReadyForQuery { _ } => { }
542+ ReadyForQuery { .. } => { }
543543 _ => unreachable ! ( )
544544 }
545545 }
@@ -679,7 +679,7 @@ impl PostgresConnection {
679679
680680 loop {
681681 match conn. read_message ( ) {
682- ReadyForQuery { _ } => break ,
682+ ReadyForQuery { .. } => break ,
683683 ErrorResponse { fields } =>
684684 fail ! ( "Error: {}" ,
685685 PostgresDbError :: new( fields) . to_str( ) ) ,
@@ -876,7 +876,7 @@ impl<'conn> Drop for NormalPostgresStatement<'conn> {
876876 Sync ] ) ;
877877 loop {
878878 match self . conn . read_message ( ) {
879- ReadyForQuery { _ } => break ,
879+ ReadyForQuery { .. } => break ,
880880 _ => { }
881881 }
882882 }
@@ -972,7 +972,7 @@ impl<'conn> PostgresStatement for NormalPostgresStatement<'conn> {
972972 let num;
973973 loop {
974974 match self . conn . read_message ( ) {
975- DataRow { _ } => { }
975+ DataRow { .. } => { }
976976 ErrorResponse { fields } => {
977977 self . conn . wait_for_ready ( ) ;
978978 return Err ( PostgresDbError :: new ( fields) ) ;
@@ -1015,7 +1015,7 @@ pub struct ResultDescription {
10151015impl ResultDescription {
10161016 fn from_row_description_entry ( row : RowDescriptionEntry )
10171017 -> ResultDescription {
1018- let RowDescriptionEntry { name, type_oid, _ } = row;
1018+ let RowDescriptionEntry { name, type_oid, .. } = row;
10191019
10201020 ResultDescription {
10211021 name : name,
@@ -1102,7 +1102,7 @@ impl<'stmt> Drop for PostgresResult<'stmt> {
11021102 Sync ] ) ;
11031103 loop {
11041104 match self . stmt . conn . read_message ( ) {
1105- ReadyForQuery { _ } => break ,
1105+ ReadyForQuery { .. } => break ,
11061106 _ => { }
11071107 }
11081108 }
@@ -1115,7 +1115,7 @@ impl<'stmt> PostgresResult<'stmt> {
11151115 loop {
11161116 match self . stmt . conn . read_message ( ) {
11171117 EmptyQueryResponse |
1118- CommandComplete { _ } => {
1118+ CommandComplete { .. } => {
11191119 self . more_rows = false ;
11201120 break ;
11211121 } ,
0 commit comments