We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0497a7d commit a5d16dfCopy full SHA for a5d16df
src/cargo-fmt/main.rs
@@ -519,11 +519,12 @@ fn get_cargo_metadata(
519
if let Some(manifest_path) = manifest_path {
520
cmd.manifest_path(manifest_path);
521
}
522
+ cmd.other_options(&[String::from("--offline")]);
523
524
match cmd.exec() {
525
Ok(metadata) => Ok(metadata),
526
Err(_) => {
- cmd.other_options(&[String::from("--offline")]);
527
+ cmd.other_options(vec![]);
528
529
530
Err(error) => Err(io::Error::new(io::ErrorKind::Other, error.to_string())),
0 commit comments