diff options
Diffstat (limited to 'check')
-rwxr-xr-x | check | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -253,7 +253,10 @@ def check_rust(r, strict=False, sloppy=False): """Run all checks for Rust code""" r.title("checking Rust code") - r.runcmd(["cargo", "build", "--workspace", "--all-targets"]) + argv = ["cargo", "build", "--workspace", "--all-targets"] + if r.offline: + argv.append("--offline") + r.runcmd(argv) if r.got_cargo("clippy") and not sloppy: argv = [ |