Skip to content

Commit ac2dcf2

Browse files
committed
adview-manager - remove unnecessary clone()
1 parent 5004636 commit ac2dcf2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adview-manager/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,12 @@ impl Manager {
471471

472472
let campaign_id = campaign.channel.id;
473473

474-
let campaign_input = targeting_input.clone().with_market_channel(campaign.channel.clone());
474+
let mut unit_input = targeting_input.clone().with_market_channel(campaign.channel.clone());
475475

476476
campaign
477477
.units_with_price
478478
.iter()
479479
.filter(|unit_with_price| {
480-
let mut unit_input = campaign_input.clone();
481480
unit_input.ad_unit_id = Some(unit_with_price.unit.id.clone());
482481

483482
let mut output = targeting::Output {

0 commit comments

Comments
 (0)