mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-26 17:30:03 +03:00
parent
f212b0ab7e
commit
948196ade5
@ -38,6 +38,7 @@ quite tricky.
|
||||
## Usage
|
||||
|
||||
`$ treefmt --help`
|
||||
|
||||
```
|
||||
treefmt 0.2.3
|
||||
✨ format all your language!
|
||||
|
@ -189,6 +189,9 @@ pub fn run_treefmt(
|
||||
} else {
|
||||
let start_time = Instant::now();
|
||||
|
||||
// Run the formatter
|
||||
formatter.clone().fmt(&paths)?;
|
||||
|
||||
// Get the new mtimes and compare them to the original ones
|
||||
let new_paths = paths
|
||||
.clone()
|
||||
@ -200,8 +203,6 @@ pub fn run_treefmt(
|
||||
sum
|
||||
});
|
||||
|
||||
formatter.clone().fmt(&paths)?;
|
||||
|
||||
info!(
|
||||
"{}: {} files processed in {:.2?}",
|
||||
formatter.name,
|
||||
|
Loading…
Reference in New Issue
Block a user