Skip to content

Commit

Permalink
run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Sep 1, 2024
1 parent 5fa83a1 commit c2b7109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/core/src/marzano_resolved_pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl<'a> MarzanoResolvedPattern<'a> {
/// Check if a pattern matches a provided pattern
///
/// Note this leaks memory, so should only be used in short-lived programs
#[allow(dead_code)]
pub(crate) fn matches(
&self,
pattern: &Pattern<MarzanoQueryContext>,
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/test_callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn test_callback() {
assert!(!callback_called.load(std::sync::atomic::Ordering::SeqCst));

let mut builder = PatternBuilder::start_empty(src, lang).unwrap();
builder = builder.matches_callback(Box::new(move |binding, context, state, logs| {
builder = builder.matches_callback(Box::new(move |binding, context, state, _logs| {
let text = binding
.text(&state.files, context.language)
.unwrap()
Expand Down

0 comments on commit c2b7109

Please sign in to comment.