summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 20e7be06..ed63724a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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(());
}