Skip to content

Commit 77584e5

Browse files
committed
default required-version to the current rustfmt version
1 parent d2bf5b8 commit 77584e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ create_config! {
640640
merge_derives: bool, true, "Merge multiple `#[derive(...)]` into a single one";
641641
binop_separator: SeparatorPlace, SeparatorPlace::Front,
642642
"Where to put a binary operator when a binary expression goes multiline.";
643-
required_version: String, "".to_owned(),
643+
required_version: String, env!("CARGO_PKG_VERSION").to_owned(),
644644
"Require a specific version of rustfmt."
645645
}
646646

0 commit comments

Comments
 (0)