mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
style
This commit is contained in:
parent
08060a2105
commit
f0028a66ec
@ -474,7 +474,7 @@ impl<W: WriteColor> Printer<W> {
|
|||||||
fn write_colored<F>(&mut self, buf: &[u8], get_color: F)
|
fn write_colored<F>(&mut self, buf: &[u8], get_color: F)
|
||||||
where F: Fn(&ColorSpecs) -> &ColorSpec
|
where F: Fn(&ColorSpecs) -> &ColorSpec
|
||||||
{
|
{
|
||||||
let _ = self.wtr.set_color( get_color(&self.colors) );
|
let _ = self.wtr.set_color(get_color(&self.colors));
|
||||||
self.write(buf);
|
self.write(buf);
|
||||||
let _ = self.wtr.reset();
|
let _ = self.wtr.reset();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user