make Connect extend Connection to simplify bounds

This commit is contained in:
Ryan Leckey
2020-02-19 00:52:38 -08:00
parent d3d58ef0cf
commit bb17ebfbbd
8 changed files with 19 additions and 31 deletions

View File

@@ -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>,