diff --git a/postgres-types/src/lib.rs b/postgres-types/src/lib.rs index e57f29fbb..05b2ac135 100644 --- a/postgres-types/src/lib.rs +++ b/postgres-types/src/lib.rs @@ -955,7 +955,7 @@ impl ToSql for Option { fn encode_format(&self, ty: &Type) -> Format { match self { - Some(ref val) => val.encode_format(ty), + Some(val) => val.encode_format(ty), None => Format::Binary, } }