We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad3d0e9 commit 7b8532bCopy full SHA for 7b8532b
1 file changed
src/lib.rs
@@ -400,9 +400,7 @@ impl InnerConnection {
400
let user = match user {
401
Some(user) => user,
402
None => {
403
- let err: Box<StdError + Sync + Send> = "User missing from connection parameters"
404
- .into();
405
- return Err(ConnectError::ConnectParams(err));
+ return Err(ConnectError::ConnectParams("User missing from connection parameters".into()));
406
}
407
};
408
0 commit comments