]> git.proxmox.com Git - cargo.git/commitdiff
Use the correct the flag in --locked --offline error message
authorhi-rustin <rustin.liu@gmail.com>
Sun, 27 Mar 2022 03:13:10 +0000 (11:13 +0800)
committerhi-rustin <rustin.liu@gmail.com>
Sun, 27 Mar 2022 03:13:10 +0000 (11:13 +0800)
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
src/cargo/ops/lockfile.rs

index 8743520ad0c271ccd3383a1f6afdedae333c2b51..2a1b1db39ddf21d817f49ea0b14ecc736206a252 100644 (file)
@@ -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"