X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fconfig.rs;h=6fe6bbe7716a417a0dddf5b1790225733d5e753a;hb=77584e507c180ee8adf180300103c0b20767b289;hp=778c445d2f6decd54847cc6f3ee8799ccec88cc7;hpb=d2bf5b8068582bcc414eac6d2d973f9bfbb133e0;p=rust.git diff --git a/src/config.rs b/src/config.rs index 778c445d2f6..6fe6bbe7716 100644 --- a/src/config.rs +++ b/src/config.rs @@ -640,7 +640,7 @@ pub fn get_toml_path(dir: &Path) -> Result, 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." }