Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Jul 4, 2024
1 parent 2a398c5 commit c914964
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cli/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,11 @@ fn update_pypi_specs_from_lock_file(
})
.collect_vec()
.iter(),
project.config().pinning_strategy.clone().unwrap_or_else(|| PinningStrategy::PinMinor),
project
.config()
.pinning_strategy
.clone()
.unwrap_or(PinningStrategy::PinMinor),
);

let version_spec =
Expand Down Expand Up @@ -478,7 +482,7 @@ fn update_conda_specs_from_lock_file(
.config()
.pinning_strategy
.clone()
.unwrap_or_else(|| PinningStrategy::PinMinor),
.unwrap_or(PinningStrategy::PinMinor),
);

if let Some(version_constraint) = version_constraint {
Expand Down

0 comments on commit c914964

Please sign in to comment.