Skip to content

Commit 1a51593

Browse files
committed
Remove ~str pattern
1 parent 731ab31 commit 1a51593

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ macro_rules! make_postgres_type(
122122
/// Returns the wire format needed for the value of `self`.
123123
pub fn result_format(&self) -> Format {
124124
match *self {
125-
PgUnknownType { name: ~"hstore", .. } => Binary,
125+
PgUnknownType { name: ref name, .. } if "hstore" == *name => Binary,
126126
PgUnknownType { .. } => Text,
127127
_ => Binary
128128
}

0 commit comments

Comments
 (0)