diff options
author | jikstra <jikstra@disroot.org> | 2021-09-02 13:50:35 +0000 |
---|---|---|
committer | jikstra <jikstra@disroot.org> | 2021-09-02 13:50:35 +0000 |
commit | 680b0d001d58a32b0caac3263103dbd9ddb5fe84 (patch) | |
tree | 3441b50bee478341d803ed9b311e9f9d76113a3a /tests | |
parent | Fix tests (diff) | |
download | miniserve-680b0d001d58a32b0caac3263103dbd9ddb5fe84.tar.gz miniserve-680b0d001d58a32b0caac3263103dbd9ddb5fe84.zip |
cargo fmt & cargo clippy
Diffstat (limited to 'tests')
-rw-r--r-- | tests/raw.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/raw.rs b/tests/raw.rs index 57d1436..6e0c2a0 100644 --- a/tests/raw.rs +++ b/tests/raw.rs @@ -73,12 +73,12 @@ fn raw_mode_links_to_directories_end_with_raw_true(server: TestServer) -> Result } else if class == "file" { assert!(true); } else { - println!( + println!( "This node is a link and neither of class directory, root or file: {:?}", node ); assert!(false); - } + } } } } @@ -90,17 +90,15 @@ fn raw_mode_links_to_directories_end_with_raw_true(server: TestServer) -> Result format!("{}very/deeply/nested/?raw=true", server.url()), ]; - let client = Client::new(); // Ensure the links to the archives are not present for url in urls.iter() { let body = client.get(url).send()?.error_for_status()?; - + let body = client.get(url).send()?.error_for_status()?; let parsed = Document::from_read(body)?; verify_a_tags(parsed); } - Ok(()) } |