mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-01-19 05:49:14 +02:00
output: remove unnecessary mut binding
This commit is contained in:
parent
06438d5360
commit
3dc6fe6f05
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user