Skip to content

Commit 99d5573

Browse files
committed
Let connect_url take a straight &str rather than impl AsRef<str>
Unnecessary genericity.
1 parent d361418 commit 99d5573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/conn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ impl Connection {
6464
}
6565

6666
/// Create a new connection based on the given URL.
67-
pub fn connect_url(url: impl AsRef<str>) -> ConnectResult<Connection> {
68-
let parms = Parameters::from_url(url.as_ref())?;
67+
pub fn connect_url(url: &str) -> ConnectResult<Connection> {
68+
let parms = Parameters::from_url(url)?;
6969
Self::new(parms)
7070
}
7171

0 commit comments

Comments
 (0)