Add --reformat and --reformat-all flags
This commit is contained in:
parent
5d03f6098e
commit
cdf28edec6
2 changed files with 18 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue