Skip to content

Commit 09ab100

Browse files
committed
cargo clippy
1 parent 6a67a02 commit 09ab100

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

forc-pkg/src/pkg.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl BuildPlan {
235235
})
236236
}
237237

238-
// Create a new build plan and syncronize manifest and lock file
238+
/// Create a new build plan and syncronize manifest and lock file
239239
pub fn load_from_manifest(
240240
manifest: &ManifestFile,
241241
locked: bool,
@@ -267,14 +267,14 @@ impl BuildPlan {
267267
} else {
268268
Some(e)
269269
};
270-
let plan = BuildPlan::new(&manifest, sway_git_tag, offline)?;
270+
let plan = BuildPlan::new(manifest, sway_git_tag, offline)?;
271271
Ok(plan)
272272
})?;
273273

274274
// If there are no issues with the BuildPlan generated from the lock file
275275
// Check and apply the diff.
276276
if new_lock_cause.is_none() {
277-
let diff = plan.validate(&manifest, sway_git_tag)?;
277+
let diff = plan.validate(manifest, sway_git_tag)?;
278278
if !diff.added.is_empty() || !diff.removed.is_empty() {
279279
new_lock_cause = Some(anyhow!("lock file did not match manifest `diff`"));
280280
plan = plan.apply_pkg_diff(diff, sway_git_tag, offline)?;
@@ -283,7 +283,7 @@ impl BuildPlan {
283283

284284
if let Some(cause) = new_lock_cause {
285285
info!(" Creating a new `Forc.lock` file. (Cause: {})", cause);
286-
create_new_lock(&plan, &old_lock, &manifest, &lock_path)?;
286+
create_new_lock(&plan, &old_lock, manifest, &lock_path)?;
287287
info!(" Created new lock file at {}", lock_path.display());
288288
}
289289

0 commit comments

Comments
 (0)