Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
fa0002ac
Commit
fa0002ac
authored
Apr 09, 2019
by
Robert Czechowski
Browse files
Fix newly occured clippy errors
parent
26effac5
Pipeline
#71
failed with stage
in 1 minute and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
fa0002ac
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment