]> git.lizzy.rs Git - rust.git/blobdiff - src/config.rs
default required-version to the current rustfmt version
[rust.git] / src / config.rs
index 778c445d2f6decd54847cc6f3ee8799ccec88cc7..6fe6bbe7716a417a0dddf5b1790225733d5e753a 100644 (file)
@@ -640,7 +640,7 @@ pub fn get_toml_path(dir: &Path) -> Result<Option<PathBuf>, Error> {
     merge_derives: bool, true, "Merge multiple `#[derive(...)]` into a single one";
     binop_separator: SeparatorPlace, SeparatorPlace::Front,
         "Where to put a binary operator when a binary expression goes multiline.";
-    required_version: String, "".to_owned(),
+    required_version: String, env!("CARGO_PKG_VERSION").to_owned(),
         "Require a specific version of rustfmt."
 }