Commit fa0002ac authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Fix newly occured clippy errors

parent 26effac5
Pipeline #71 failed with stage
in 1 minute and 32 seconds
......@@ -249,7 +249,7 @@ mod tests {
if let Some(user) = set_user {
let mut test_user = conn.new_session();
test_user.username = Some(user.0.into());
test_user.username = Some(user.0);
match test_user.set_password(&user.1) {
None => panic!("Set Password did not work correctly.)"),
_ => conn.save_session(test_user),
......@@ -277,7 +277,7 @@ mod tests {
fn login_for_tests(port: u16, client: &reqwest::Client, username: &str, password: &str) -> reqwest::Response {
let params = [("username", username), ("password", password)];
let resp = client.post(&format!("http://localhost:{}/login", port)).form(&params).send().unwrap();
return resp;
resp
}
fn check_status(resp: &reqwest::Response, expected_status: reqwest::StatusCode) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment