Skip to content

Commit f37b121

Browse files
committed
Fix build error
1 parent ad689a3 commit f37b121

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

adapter/src/ethereum.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,12 +669,14 @@ mod test {
669669
deposit_asset: eth_checksum::checksum(&format!("{:?}", token_contract.address())),
670670
deposit_amount: 2_000.into(),
671671
valid_until: Utc::now() + Duration::days(2),
672+
targeting_rules: vec![],
672673
spec: ChannelSpec {
673674
title: None,
674675
validators: SpecValidators::new(leader_validator_desc, follower_validator_desc),
675676
max_per_impression: 10.into(),
676677
min_per_impression: 10.into(),
677678
targeting: vec![],
679+
targeting_rules: vec![],
678680
min_targeting_score: None,
679681
event_submission: Some(EventSubmission { allow: vec![] }),
680682
created: Utc::now(),

primitives/src/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ pub mod postgres {
359359
deposit_asset: row.get("deposit_asset"),
360360
deposit_amount: row.get("deposit_amount"),
361361
valid_until: row.get("valid_until"),
362-
spec: row.get::<_, Json<ChannelSpec>>("spec").0,
363362
targeting_rules: row.get::<_, Json<Vec<Rule>>>("targeting_rules").0,
363+
spec: row.get::<_, Json<ChannelSpec>>("spec").0,
364364
}
365365
}
366366
}

primitives/src/targeting/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,10 @@ fn math_operator(lhs: Number, rhs: Number, ops: MathOperator) -> Result<Number,
589589

590590
#[cfg(feature = "postgres")]
591591
pub mod postgres {
592+
use super::*;
592593
use bytes::BytesMut;
593594
use postgres_types::{accepts, to_sql_checked, IsNull, Json, ToSql, Type};
594595
use std::error::Error;
595-
use super::*;
596596

597597
impl ToSql for Rule {
598598
fn to_sql(

0 commit comments

Comments
 (0)