Skip to content

Commit

Permalink
trigger: remove useless allow(dead_code)
Browse files Browse the repository at this point in the history
TESTED=it builds without warning.
  • Loading branch information
pkhuong committed Sep 12, 2021
1 parent 8af796d commit ec0dfc7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ impl PeriodicTrigger {
/// Observes count "events". Returns whether the periodic trigger
/// fired for any of these events (i.e., whether the caller should
/// invoke the periodic behaviour).
#[allow(dead_code)]
#[inline(always)]
pub fn weighted_event(self, count: u64) -> bool {
observe(self.scale.saturating_mul(count))
Expand Down

0 comments on commit ec0dfc7

Please sign in to comment.