Remove ~str pattern
This commit is contained in:
parent
731ab310ba
commit
1a51593306
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user