Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Aug 13, 2023
1 parent 76bb8a6 commit a64825a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ where
}
}

#[allow(clippy::needless_pass_by_ref_mut)]
pub async fn resolve_ordered_with_provider_init<F>(
state: &mut State,
mod_specs: &[ModSpecification],
Expand Down
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,7 @@ async fn action_lint(action: ActionLint) -> Result<()> {

let mod_paths = resolve_ordered_with_provider_init(&mut state, &mods, init_provider).await?;

let mods = mods
.into_iter()
.zip(mod_paths.into_iter())
.collect::<Vec<_>>();
let mods = mods.into_iter().zip(mod_paths).collect::<Vec<_>>();

let report = tokio::task::spawn_blocking(move || lint(&state, &mods)).await??;
println!("{:#?}", report);
Expand Down

0 comments on commit a64825a

Please sign in to comment.