diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-12-19 11:49:59 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-12-19 11:49:59 +0000 |
commit | 646742fdeac25f2b92b7295f2e6250adaf7f5c53 (patch) | |
tree | 6788656eef9f0b9049ad6d90bbb8cb72296412c7 /tests/tls.rs | |
parent | Bump deps (diff) | |
download | miniserve-646742fdeac25f2b92b7295f2e6250adaf7f5c53.tar.gz miniserve-646742fdeac25f2b92b7295f2e6250adaf7f5c53.zip |
Fix lints
Diffstat (limited to '')
-rw-r--r-- | tests/tls.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tls.rs b/tests/tls.rs index 6aa9460..a1c819a 100644 --- a/tests/tls.rs +++ b/tests/tls.rs @@ -34,7 +34,7 @@ fn tls_works(#[case] server: TestServer) -> Result<(), Error> { #[rstest] fn wrong_path_cert() -> Result<(), Error> { Command::cargo_bin("miniserve")? - .args(&["--tls-cert", "wrong", "--tls-key", "tests/data/key.pem"]) + .args(["--tls-cert", "wrong", "--tls-key", "tests/data/key.pem"]) .assert() .failure() .stderr(contains("Error: Couldn't access TLS certificate \"wrong\"")); @@ -46,7 +46,7 @@ fn wrong_path_cert() -> Result<(), Error> { #[rstest] fn wrong_path_key() -> Result<(), Error> { Command::cargo_bin("miniserve")? - .args(&["--tls-cert", "tests/data/cert.pem", "--tls-key", "wrong"]) + .args(["--tls-cert", "tests/data/cert.pem", "--tls-key", "wrong"]) .assert() .failure() .stderr(contains("Error: Couldn't access TLS key \"wrong\"")); |