diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2017-08-31 14:52:51 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2017-09-07 10:52:31 -0700 |
commit | 17f13b32cfbf6153c9176f304729ce6180505eca (patch) | |
tree | f43e966fa9673e32237c5eb72d870b2df5fa393e /src | |
parent | a93d0fb2128b68b390293265138ab3c51fcd77b0 (diff) |
Add a timer for rustfmt'ing the generated bindings
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(()); } |