1
0
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:
Andrew Gallant 2018-04-23 20:06:03 -04:00
parent 06438d5360
commit 3dc6fe6f05
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

View File

@ -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]);
}