summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-04-23 20:06:03 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-04-23 20:06:03 -0400
commit3dc6fe6f057028398f19cfdcc2f3d059fda1838b (patch)
tree1d3cb83c34de5517cd1487b16d835d90387b1228 /src
parent06438d5360faffc8f7f4d3534242bb6cdbcbddd4 (diff)
output: remove unnecessary mut binding
Diffstat (limited to 'src')
-rw-r--r--src/printer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printer.rs b/src/printer.rs
index fce6858c..721967e2 100644
--- a/src/printer.rs
+++ b/src/printer.rs
@@ -472,7 +472,7 @@ impl<W: WriteColor> Printer<W> {
}
fn line_number(&mut self, n: u64, sep: u8) {
- let mut line_number = n.to_string();
+ let line_number = n.to_string();
self.write_colored(line_number.as_bytes(), |colors| colors.line());
self.separator(&[sep]);
}