Remove ~str pattern

This commit is contained in:
Steven Fackler 2014-03-12 23:34:57 -07:00
parent 731ab310ba
commit 1a51593306

View File

@ -122,7 +122,7 @@ macro_rules! make_postgres_type(
/// Returns the wire format needed for the value of `self`.
pub fn result_format(&self) -> Format {
match *self {
PgUnknownType { name: ~"hstore", .. } => Binary,
PgUnknownType { name: ref name, .. } if "hstore" == *name => Binary,
PgUnknownType { .. } => Text,
_ => Binary
}