Little cleanup
This commit is contained in:
parent
a00ad0d54e
commit
dc6bb579c2
@ -1175,10 +1175,7 @@ impl<'conn> PostgresStatement<'conn> {
|
||||
}
|
||||
CommandComplete { tag } => {
|
||||
let s = tag.split(' ').last().unwrap();
|
||||
num = match FromStr::from_str(s) {
|
||||
None => 0,
|
||||
Some(n) => n
|
||||
};
|
||||
num = FromStr::from_str(s).unwrap_or(0);
|
||||
break;
|
||||
}
|
||||
EmptyQueryResponse => {
|
||||
|
Loading…
Reference in New Issue
Block a user