Skip to content

Commit 7b8532b

Browse files
committed
Cleanup
1 parent ad3d0e9 commit 7b8532b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,7 @@ impl InnerConnection {
400400
let user = match user {
401401
Some(user) => user,
402402
None => {
403-
let err: Box<StdError + Sync + Send> = "User missing from connection parameters"
404-
.into();
405-
return Err(ConnectError::ConnectParams(err));
403+
return Err(ConnectError::ConnectParams("User missing from connection parameters".into()));
406404
}
407405
};
408406

0 commit comments

Comments
 (0)