Skip to content

Commit

Permalink
Use the correct the flag in --locked --offline error message
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Mar 27, 2022
1 parent b1636fc commit 17ec415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn write_pkg_lockfile(ws: &Workspace<'_>, resolve: &mut Resolve) -> CargoRes
}

if !ws.config().lock_update_allowed() {
let flag = if ws.config().network_allowed() {
let flag = if ws.config().locked() {
"--locked"
} else {
"--frozen"
Expand Down

0 comments on commit 17ec415

Please sign in to comment.