Skip to content

Commit

Permalink
fix: add missing unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Sep 26, 2023
1 parent b18ca33 commit b2b9ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yara-x/src/modules/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ mod tests {

let mut scanner = crate::scanner::Scanner::new(&rules);

assert_eq!(scanner.scan(&[]).matching_rules().len(), 6);
assert_eq!(scanner.scan(&[]).unwrap().matching_rules().len(), 6);
}
}

0 comments on commit b2b9ec9

Please sign in to comment.