Skip to content

Commit

Permalink
Apply clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Sep 16, 2024
1 parent bfdbeb2 commit 700baa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/navigation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fn can_navigate_using_breadcrumbs(
let dir = DEEPLY_NESTED_FILE.parent().unwrap().to_str().unwrap();

let base_url = server.url();
let nested_url = base_url.join(&dir)?;
let nested_url = base_url.join(dir)?;

let resp = reqwest::blocking::get(nested_url.as_str())?;
let body = resp.error_for_status()?;
Expand Down
4 changes: 2 additions & 2 deletions tests/rm_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn make_del_path(unencoded_path: impl AsRef<Path>) -> String {
fn assert_rm_ok(base_url: Url, unencoded_paths: &[impl AsRef<Path>]) -> anyhow::Result<()> {
let client = Client::new();

for file_path in unencoded_paths.into_iter().map(AsRef::as_ref) {
for file_path in unencoded_paths.iter().map(AsRef::as_ref) {
// encode
let get_url = base_url.join(&make_get_path(file_path))?;
let del_url = base_url.join(&make_del_path(file_path))?;
Expand Down Expand Up @@ -83,7 +83,7 @@ fn assert_rm_err(
) -> anyhow::Result<()> {
let client = Client::new();

for file_path in unencoded_paths.into_iter().map(AsRef::as_ref) {
for file_path in unencoded_paths.iter().map(AsRef::as_ref) {
// encode
let get_url = base_url.join(&make_get_path(file_path))?;
let del_url = base_url.join(&make_del_path(file_path))?;
Expand Down

0 comments on commit 700baa6

Please sign in to comment.