Add warning about write-mode change

This commit is contained in:
Nick Cameron 2017-06-20 18:47:32 +12:00
parent fbc95385d3
commit 90251c32ff

View File

@ -78,6 +78,8 @@ fn from_matches(matches: &Matches) -> FmtResult<CliOptions> {
format!("Invalid write-mode: {}", write_mode),
));
}
} else {
println!("Warning: the default write-mode for Rustfmt will soon change to overwrite - this will not leave backups of changed files.");
}
if let Some(ref file_lines) = matches.opt_str("file-lines") {