Commit 837d8ffa authored by Romain Vimont's avatar Romain Vimont Committed by Luca Barbato

Remove unnecessary clone()

parent 04d6c53f
......@@ -495,8 +495,7 @@ impl Context {
let data = encode_frame(&mut self.seq, &mut self.fi, &mut fs);
// TODO avoid the clone by having rec Arc.
let rec = if self.fi.show_frame { Some(fs.rec.clone()) } else { None };
let rec = if self.fi.show_frame { Some(fs.rec) } else { None };
let mut psnr = None;
if self.fi.config.show_psnr {
if let Some(ref rec) = rec {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment