Skip to content

Commit

Permalink
Linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
orkunkl committed Dec 24, 2021
1 parent 5101d72 commit 56ee692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ pub use threshold::{Threshold, ThresholdError, ThresholdResponse};
pub use crate::balance::NativeBalance;
pub use crate::event::Event;
pub use crate::expiration::{Duration, Expiration, DAY, HOUR, WEEK};
pub use crate::scheduled::Scheduled;
1 change: 1 addition & 0 deletions packages/utils/src/scheduled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ impl fmt::Display for Scheduled {
}

impl Scheduled {
#[allow(dead_code)]
pub fn is_triggered(&self, block: &BlockInfo) -> bool {
match self {
Scheduled::AtHeight(height) => block.height >= *height,
Expand Down

0 comments on commit 56ee692

Please sign in to comment.