Skip to content

Commit

Permalink
impl ToStatement for String → impl<T: Sealed + AsRef<str>> ToStatemen…
Browse files Browse the repository at this point in the history
…t for T
  • Loading branch information
i18nsite committed Feb 18, 2025
1 parent 490c485 commit 7bf4dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio-postgres/src/to_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ impl ToStatement for str {

impl Sealed for str {}

impl ToStatement for String {
impl<T: Sealed + AsRef<str>> ToStatement for T {
fn __convert(&self) -> ToStatementType<'_> {
ToStatementType::Query(self)
ToStatementType::Query(self.as_ref())
}
}

Expand Down

0 comments on commit 7bf4dfc

Please # to comment.