Skip to content

Commit

Permalink
chore: remove unnecessary clone of workspace (#3770)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

## Summary\*



## Additional Context



## Documentation\*

Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.

# PR Checklist\*

- [ ] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
TomAFrench authored Dec 11, 2023
1 parent 5734e4c commit 0d6fd21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tooling/nargo_toml/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ pub fn resolve_workspace_from_toml(
let nargo_toml = read_toml(toml_path)?;
let workspace = toml_to_workspace(nargo_toml, package_selection)?;
if let Some(current_compiler_version) = current_compiler_version {
semver::semver_check_workspace(workspace.clone(), current_compiler_version)?;
semver::semver_check_workspace(&workspace, current_compiler_version)?;
}
Ok(workspace)
}
Expand Down
2 changes: 1 addition & 1 deletion tooling/nargo_toml/src/semver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub(crate) fn parse_semver_compatible_version(version: &str) -> Result<Version,

// Check that all of the packages in the workspace are compatible with the current compiler version
pub(crate) fn semver_check_workspace(
workspace: Workspace,
workspace: &Workspace,
current_compiler_version: String,
) -> Result<(), ManifestError> {
let version = parse_semver_compatible_version(&current_compiler_version)
Expand Down

0 comments on commit 0d6fd21

Please sign in to comment.