Skip to content

Commit

Permalink
#[allow(clippy::assigning_clones)]
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyuzhao committed May 20, 2024
1 parent f0825c9 commit e96351e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions harness-cli/src/commands/run/checks/pre_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ impl<'a> PreBenchmarkingChecker<'a> {
Ok(())
}

#[allow(clippy::assigning_clones)]
fn check_build_configs(&mut self) -> anyhow::Result<()> {
// No builds or only one build?
let builds = self.run.profile.builds.len();
Expand Down
1 change: 1 addition & 0 deletions harness-cli/src/commands/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ impl RunArgs {
Ok(runid)
}

#[allow(clippy::assigning_clones)]
fn prepare_reproduced_run(
&self,
crate_info: &CrateInfo,
Expand Down
1 change: 1 addition & 0 deletions harness-cli/src/utils/lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fn load_current_lockfile(ws: &Path) -> anyhow::Result<toml::Value> {
Ok(lockfile)
}

#[allow(clippy::assigning_clones)]
pub fn load_lockfiles(crate_info: &CrateInfo, profile: &Profile) -> anyhow::Result<Lockfiles> {
// Get lockfile for each build
let mut lockfiles = HashMap::new();
Expand Down

0 comments on commit e96351e

Please sign in to comment.