Add warning about write-mode change
This commit is contained in:
parent
fbc95385d3
commit
90251c32ff
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user