mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-22 07:43:39 +01:00
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
|
||||
),
|
||||
self.ansi_style.to_reset_sequence(),
|
||||
panel_wrap.clone().unwrap()
|
||||
panel_wrap.as_ref().unwrap()
|
||||
)?;
|
||||
|
||||
cursor = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user