Skip to content

Commit f2367a2

Browse files
committed
lints
1 parent 1dfb124 commit f2367a2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contracts/consumer/remote-price-feed/src/contract.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ pub struct RemotePriceFeedContract {
2525
pub scheduler: Scheduler<Box<dyn Action>>,
2626
}
2727

28+
impl Default for RemotePriceFeedContract {
29+
fn default() -> Self {
30+
Self::new()
31+
}
32+
}
33+
2834
#[cfg_attr(not(feature = "library"), sylvia::entry_points)]
2935
#[contract]
3036
#[error(ContractError)]
@@ -37,7 +43,7 @@ impl RemotePriceFeedContract {
3743
price_info: Item::new("price"),
3844
price_info_ttl_in_secs: Item::new("price_ttl"),
3945
// TODO: the indirection can be removed once Sylvia supports
40-
// generics
46+
// generics. The constructor can then probably be constant
4147
scheduler: Scheduler::new(Box::new(handle_epoch)),
4248
}
4349
}

0 commit comments

Comments
 (0)