Skip to content

Commit 0ac8b28

Browse files
committed
refactor(lockfile): Clarify scope of mutation
1 parent d438c80 commit 0ac8b28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/ops/lockfile.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn load_pkg_lockfile(ws: &Workspace<'_>) -> CargoResult<Option<Resolve>> {
2828
}
2929

3030
/// Generate a toml String of Cargo.lock from a Resolve.
31-
pub fn resolve_to_string(ws: &Workspace<'_>, resolve: &mut Resolve) -> CargoResult<String> {
31+
pub fn resolve_to_string(ws: &Workspace<'_>, resolve: &Resolve) -> CargoResult<String> {
3232
let (_orig, out, _lock_root) = resolve_to_string_orig(ws, resolve);
3333
Ok(out)
3434
}
@@ -98,7 +98,7 @@ pub fn write_pkg_lockfile(ws: &Workspace<'_>, resolve: &mut Resolve) -> CargoRes
9898

9999
fn resolve_to_string_orig(
100100
ws: &Workspace<'_>,
101-
resolve: &mut Resolve,
101+
resolve: &Resolve,
102102
) -> (Option<String>, String, Filesystem) {
103103
// Load the original lock file if it exists.
104104
let lock_root = lock_root(ws);

0 commit comments

Comments
 (0)