Skip to content

Commit

Permalink
chore(hydro_cli): Add clippy::needless_pass_by_ref_mut false-positi…
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Aug 30, 2023
1 parent 7c7eea7 commit 7965306
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hydro_cli/src/core/terraform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ impl Default for TerraformBatch {

impl TerraformBatch {
pub async fn provision(self, pool: &mut TerraformPool) -> Result<TerraformResult> {
// Hack to quiet false-positive `clippy::needless_pass_by_ref_mut` on latest nightlies.
// TODO(mingwei): Remove this when it is no longer needed (current date 2023-08-30).
// https://github.com/rust-lang/rust-clippy/issues/11380
let pool = std::convert::identity(pool);

if self.terraform.required_providers.is_empty()
&& self.resource.is_empty()
&& self.data.is_empty()
Expand Down

0 comments on commit 7965306

Please sign in to comment.