Skip to content

Commit

Permalink
remove clone calls
Browse files Browse the repository at this point in the history
  • Loading branch information
SwareJonge committed Jan 29, 2025
1 parent dc491f5 commit 4e01943
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions av1an-core/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ impl Av1anContext {
.map_or(self.args.passes, |ovr| ovr.passes),
encoder: overrides
.as_ref()
.map_or(self.args.encoder.clone(), |ovr| ovr.encoder.clone()),
.map_or(self.args.encoder, |ovr| ovr.encoder),
noise_size: self.args.photon_noise_size,
tq_cq: None,
ignore_frame_mismatch: self.args.ignore_frame_mismatch,
Expand Down Expand Up @@ -983,7 +983,7 @@ impl Av1anContext {
encoder: scene
.zone_overrides
.as_ref()
.map_or(self.args.encoder.clone(), |ovr| ovr.encoder.clone()),
.map_or(self.args.encoder, |ovr| ovr.encoder),
noise_size: self.args.photon_noise_size,
tq_cq: None,
ignore_frame_mismatch: self.args.ignore_frame_mismatch,
Expand Down Expand Up @@ -1190,7 +1190,7 @@ impl Av1anContext {
.map_or(self.args.passes, |ovr| ovr.passes),
encoder: overrides
.as_ref()
.map_or(self.args.encoder.clone(), |ovr| ovr.encoder.clone()),
.map_or(self.args.encoder, |ovr| ovr.encoder),
noise_size: self.args.photon_noise_size,
tq_cq: None,
ignore_frame_mismatch: self.args.ignore_frame_mismatch,
Expand Down

0 comments on commit 4e01943

Please sign in to comment.