Skip to content

Commit

Permalink
Merge pull request #1198 from allan2/clippy
Browse files Browse the repository at this point in the history
Fix clippy lifetimes
  • Loading branch information
sfackler authored Feb 2, 2025
2 parents 924d0e5 + 0a25fd1 commit 263fb90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ impl<T: ToSql> ToSql for Option<T> {

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,
}
}
Expand Down

0 comments on commit 263fb90

Please sign in to comment.