diff --git a/ghostflow-cli/src/command/check/run/commits.rs b/ghostflow-cli/src/command/check/run/commits.rs index 994a1647c014d74502ef4803379d597dbdc14c04..2386a51cc08fe849bcde1c49b27779b3308a7e16 100644 --- a/ghostflow-cli/src/command/check/run/commits.rs +++ b/ghostflow-cli/src/command/check/run/commits.rs @@ -167,7 +167,7 @@ impl Commits { }; let res = commit_checks - .run_commit(&ctx, &rev, &identity) + .run_commit(ctx, &rev, &identity) .map_err(|err| CommitsError::check(rev.clone(), err))?; Ok((rev, res)) diff --git a/ghostflow/src/actions/reformat.rs b/ghostflow/src/actions/reformat.rs index 86b8808a00876c9b0fa9431a5cae109c300db62f..988a12e98faeb784eca6418cfc171f50e184de7e 100644 --- a/ghostflow/src/actions/reformat.rs +++ b/ghostflow/src/actions/reformat.rs @@ -1071,7 +1071,7 @@ impl Reformat { ); Ok(CommitInfo { - commit: Commit::new(&self.ctx, &commit)?, + commit: Commit::new(&self.ctx, commit)?, author_date: date_lines[0].parse()?, committer_date: date_lines[1].parse()?, }) diff --git a/ghostflow/src/actions/test/pipelines.rs b/ghostflow/src/actions/test/pipelines.rs index 358f05394cf8e3cffc8f7ee6798b0ee417a83b0c..bc828bdc5dd02d46e97031e11ea2eb28723d93a9 100644 --- a/ghostflow/src/actions/test/pipelines.rs +++ b/ghostflow/src/actions/test/pipelines.rs @@ -231,7 +231,7 @@ impl TestPipelines { .map(|pipeline| { Ok(self .service - .pipeline_jobs(&pipeline)? + .pipeline_jobs(pipeline)? // A job-less pipeline is fine. .unwrap_or_default()) })