This commit is contained in:
Steven Fackler
2016-04-04 22:55:13 -07:00
parent ad3d0e99d5
commit 7b8532b28f

View File

@@ -400,9 +400,7 @@ impl InnerConnection {
let user = match user {
Some(user) => user,
None => {
let err: Box<StdError + Sync + Send> = "User missing from connection parameters"
.into();
return Err(ConnectError::ConnectParams(err));
return Err(ConnectError::ConnectParams("User missing from connection parameters".into()));
}
};