You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `std::convert::AsRef<str> + 'static: std::fmt::Debug` is not satisfied
--> postgres-shared/src/types/mod.rs:621:6
|
621 | impl ToSqlforAsRef<str> {
| ^^^^^ the trait `std::fmt::Debug` is not implementedfor `std::convert::AsRef<str> + 'static`
|
= note: `std::convert::AsRef<str> + 'static` cannot be formatted using `:?`;if it is defined in your crate, add `#[derive(Debug)]` or manually implement it
= note: required by `types::ToSql`
Which I'm not sure how to solve. I was wondering if we can make it more ergonomic to use Cow<str> in ToSql positions.
The text was updated successfully, but these errors were encountered:
That implementation is for AsRef<str> the trait, as opposed to types implementing AsRef<str>. I don't think either approach will work, unfortunately. It seems reasonable to just add a concrete implementation for Cow<str> though!
djc
added a commit
to djc/rust-postgres
that referenced
this issue
Aug 3, 2017
I tried this:
But that fails with the following:
Which I'm not sure how to solve. I was wondering if we can make it more ergonomic to use
Cow<str>
inToSql
positions.The text was updated successfully, but these errors were encountered: