Skip to content

Commit dc6bb57

Browse files
committed
Little cleanup
1 parent a00ad0d commit dc6bb57

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,10 +1175,7 @@ impl<'conn> PostgresStatement<'conn> {
11751175
}
11761176
CommandComplete { tag } => {
11771177
let s = tag.split(' ').last().unwrap();
1178-
num = match FromStr::from_str(s) {
1179-
None => 0,
1180-
Some(n) => n
1181-
};
1178+
num = FromStr::from_str(s).unwrap_or(0);
11821179
break;
11831180
}
11841181
EmptyQueryResponse => {

0 commit comments

Comments
 (0)