mirror of https://github.com/sharkdp/bat.git
Replace clone with reference
This avoids an unnecessary allocation and memory copy when printing the empty panel during line wrapping.
This commit is contained in:
parent
5a2a20af42
commit
070c87c8cd
|
@ -705,7 +705,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
||||||
background_color
|
background_color
|
||||||
),
|
),
|
||||||
self.ansi_style.to_reset_sequence(),
|
self.ansi_style.to_reset_sequence(),
|
||||||
panel_wrap.clone().unwrap()
|
panel_wrap.as_ref().unwrap()
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
cursor = 0;
|
cursor = 0;
|
||||||
|
|
Loading…
Reference in New Issue