diff options
author | Gaurav <allmanpride@gmail.com> | 2022-08-26 21:27:42 +0000 |
---|---|---|
committer | Gaurav <allmanpride@gmail.com> | 2022-08-26 21:27:42 +0000 |
commit | c951d7ad187059c9152309e0dc2fd771f5e4b2d4 (patch) | |
tree | e877add79bc7e68ef7bd6eb42e8e8fda6c7db9d5 /tests | |
parent | Use `TestServer` in `--readme` tests (diff) | |
download | miniserve-c951d7ad187059c9152309e0dc2fd771f5e4b2d4.tar.gz miniserve-c951d7ad187059c9152309e0dc2fd771f5e4b2d4.zip |
Appease `cargo fmt`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/readme.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/readme.rs b/tests/readme.rs index 0e90217..59f3d65 100644 --- a/tests/readme.rs +++ b/tests/readme.rs @@ -48,13 +48,14 @@ fn show_readme_contents(#[with(&["--readme"])] server: TestServer) -> Result<(), #[rstest] /// Show readme contents when told to if there is readme.md file on directories. -fn show_readme_contents_directories(#[with(&["--readme"])] server: TestServer) -> Result<(), Error> { +fn show_readme_contents_directories( + #[with(&["--readme"])] server: TestServer, +) -> Result<(), Error> { let directories = DIRECTORIES.to_vec(); for directory in directories { let dir_body = - reqwest::blocking::get(server.url().join(&directory)?)? - .error_for_status()?; + reqwest::blocking::get(server.url().join(&directory)?)?.error_for_status()?; let dir_body_parsed = Document::from_read(dir_body)?; assert!(dir_body_parsed.find(Attr("id", "readme")).next().is_some()); assert!(dir_body_parsed |