Little cleanup

This commit is contained in:
Steven Fackler 2014-05-11 23:28:54 -07:00
parent a00ad0d54e
commit dc6bb579c2

View File

@ -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 => {