mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-08 19:25:50 +00:00
make Connect extend Connection to simplify bounds
This commit is contained in:
@@ -409,8 +409,6 @@ impl PgConnection {
|
||||
}
|
||||
|
||||
impl Connect for PgConnection {
|
||||
type Connection = PgConnection;
|
||||
|
||||
fn connect<T>(url: T) -> BoxFuture<'static, Result<PgConnection>>
|
||||
where
|
||||
T: TryInto<Url, Error = crate::Error>,
|
||||
|
||||
Reference in New Issue
Block a user