Skip to content

Commit 8058bd3

Browse files
committed
Make a PathBuf by value
1 parent ccd3c45 commit 8058bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl IntoConnectParams for Url {
174174

175175
#[cfg(feature = "unix_socket")]
176176
fn make_unix(maybe_path: String) -> result::Result<ConnectTarget, ConnectError> {
177-
Ok(ConnectTarget::Unix(PathBuf::from(&maybe_path)))
177+
Ok(ConnectTarget::Unix(PathBuf::from(maybe_path)))
178178
}
179179
#[cfg(not(feature = "unix_socket"))]
180180
fn make_unix(_: String) -> result::Result<ConnectTarget, ConnectError> {

0 commit comments

Comments
 (0)