diff options
Diffstat (limited to 'src/perfcnt/mod.rs')
-rw-r--r-- | src/perfcnt/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/perfcnt/mod.rs b/src/perfcnt/mod.rs index 431f00e..74b80a2 100644 --- a/src/perfcnt/mod.rs +++ b/src/perfcnt/mod.rs @@ -13,7 +13,7 @@ const MODEL_LEN: usize = 30; #[derive(Default)] struct ModelWriter { buffer: [u8; MODEL_LEN], - index: usize + index: usize, } impl ModelWriter { @@ -27,7 +27,7 @@ impl Write for ModelWriter { // TODO: There exists probably a more efficient way of doing this: for c in s.chars() { if self.index >= self.buffer.len() { - return Err(Error) + return Err(Error); } self.buffer[self.index] = c as u8; self.index += 1; @@ -75,4 +75,4 @@ fn counter_test() { assert!(p.event_name == "INST_RETIRED.ANY"); }); }); -}
\ No newline at end of file +} |