Skip to content

Commit

Permalink
fix: compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Oct 18, 2024
1 parent 089fcdf commit 5d9e019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,7 @@ impl RuleId {
/// Returns the [`RuleId`] that comes after this one.
///
/// This simply adds 1 to the ID.
#[allow(dead_code)]
pub(crate) fn next(&self) -> Self {
RuleId(self.0 + 1)
}
Expand Down
1 change: 1 addition & 0 deletions lib/src/scanner/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ impl ScanContext<'_> {

/// Update the time spent in the rule with the given ID, the time is
/// increased by the time elapsed since `rule_execution_start_time`.
#[cfg(feature = "rules-profiling")]
pub(crate) fn update_time_spent_in_rule(&mut self, rule_id: RuleId) {
// SAFETY: it's safe to call `get_unchecked_mut`, the size of the
// `time_spent_in_rule` vector is guaranteed to be the number of
Expand Down

0 comments on commit 5d9e019

Please sign in to comment.