diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1485,6 +1485,8 @@ impl Bindings { /// Checks if rustfmt_bindings is set and runs rustfmt on the file fn rustfmt_generated_file(&self, file: &Path) -> io::Result<()> { + let _t = self.context.timer("rustfmt_generated_file"); + if !self.context.options().rustfmt_bindings { return Ok(()); } |