We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b1193 commit d988fc2Copy full SHA for d988fc2
1 file changed
lib.rs
@@ -515,12 +515,10 @@ impl InnerPostgresConnection {
515
516
let result_desc = match self.read_message() {
517
RowDescription { descriptions } => {
518
- let res: ~[ResultDescription] = descriptions
519
- .move_iter().map(|desc| {
+ descriptions.move_iter().map(|desc| {
520
ResultDescription::from_row_description_entry(desc)
521
- }).collect();
522
- res
523
- },
+ }).collect()
+ }
524
NoData => ~[],
525
_ => unreachable!()
526
};
0 commit comments