Add --reformat and --reformat-all flags

This commit is contained in:
Joscha 2021-12-12 20:35:57 +00:00
parent 5d03f6098e
commit cdf28edec6
2 changed files with 18 additions and 1 deletions

View file

@ -175,6 +175,12 @@ impl Files {
Ok(())
}
pub fn mark_main_dirty(&mut self) {
if let Some(file) = self.files.get_mut(0) {
file.dirty = true;
}
}
pub fn mark_all_dirty(&mut self) {
for file in self.files.iter_mut() {
file.dirty = true;