Skip to content

Commit

Permalink
fix: fix unused warning on statistics in default features config
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Aug 9, 2024
1 parent 44028ce commit 5ecc70e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boreal/src/scanner/ac_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::atoms::pick_atom_in_literal;
use crate::compiler::variable::Variable;
use crate::matcher::{AcMatchStatus, Matcher};
use crate::memory::Region;
use crate::{statistics, timeout};

/// Factorize atoms from all variables, to scan for them in a single pass.
///
Expand Down Expand Up @@ -55,10 +54,11 @@ struct LiteralInfo {
#[derive(Debug)]
pub struct ScanData<'a> {
/// Object used to check if the scan times out.
pub timeout_checker: Option<&'a mut timeout::TimeoutChecker>,
pub timeout_checker: Option<&'a mut crate::timeout::TimeoutChecker>,

#[cfg(feature = "profiling")]
/// Statistics related to the scan.
pub statistics: Option<&'a mut statistics::Evaluation>,
pub statistics: Option<&'a mut crate::statistics::Evaluation>,

/// List of variables to scan.
///
Expand Down
1 change: 1 addition & 0 deletions boreal/src/scanner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ impl Inner {

let mut ac_scan_data = ac_scan::ScanData {
timeout_checker: scan_data.timeout_checker.as_mut(),
#[cfg(feature = "profiling")]
statistics: scan_data.statistics.as_mut(),
variables: &self.variables,
params: scan_data.params,
Expand Down

0 comments on commit 5ecc70e

Please sign in to comment.