We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 731ab31 commit 1a51593Copy full SHA for 1a51593
1 file changed
src/types/mod.rs
@@ -122,7 +122,7 @@ macro_rules! make_postgres_type(
122
/// Returns the wire format needed for the value of `self`.
123
pub fn result_format(&self) -> Format {
124
match *self {
125
- PgUnknownType { name: ~"hstore", .. } => Binary,
+ PgUnknownType { name: ref name, .. } if "hstore" == *name => Binary,
126
PgUnknownType { .. } => Text,
127
_ => Binary
128
}
0 commit comments