X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Fformat.rs;h=5e7264fe765a950ac9980b7ef55b5e05023312d6;hb=0a528b16fcee67f0ce47c88bf7b57f1bd5439bad;hp=37322670e656483864a662a7537db4d6fdd1650b;hpb=e3148dc7c48e1c96b05c85f57394308a6e46c1ed;p=rust.git diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs index 37322670e65..5e7264fe765 100644 --- a/src/bootstrap/format.rs +++ b/src/bootstrap/format.rs @@ -43,7 +43,7 @@ struct RustfmtConfig { } pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) { - if build.config.dry_run { + if build.config.dry_run() { return; } let mut builder = ignore::types::TypesBuilder::new();