Skip to content

Commit 263fb90

Browse files
authored
Merge pull request #1198 from allan2/clippy
Fix clippy lifetimes
2 parents 924d0e5 + 0a25fd1 commit 263fb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres-types/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ impl<T: ToSql> ToSql for Option<T> {
955955

956956
fn encode_format(&self, ty: &Type) -> Format {
957957
match self {
958-
Some(ref val) => val.encode_format(ty),
958+
Some(val) => val.encode_format(ty),
959959
None => Format::Binary,
960960
}
961961
}

0 commit comments

Comments
 (0)