Skip to content

Commit

Permalink
chore: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Sep 15, 2023
1 parent ff8b14d commit 2f21289
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rustemo-compiler/src/grammar/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn terminals_regex() {
&["STOP", "foo", "some", "rmatch_term", "more_regex"]
);
for (term_name, term_regex) in
[("rmatch_term", r#""[^"]+""#), ("more_regex", r#"\d{2,5}"#)]
[("rmatch_term", r#""[^"]+""#), ("more_regex", r"\d{2,5}")]
{
assert!(match grammar
.symbol_to_term(grammar.term_by_name[term_name])
Expand Down
4 changes: 2 additions & 2 deletions rustemo-compiler/src/grammar/types/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{

#[test]
fn symbols_type_deduction() {
let grammar: Grammar = r#"
let grammar: Grammar = r"
A: myb=B c=C {MyKind}| B c=C | D {MyD}
| Num | Recursive | OneOrMoreRecursive;
B: C | EMPTY;
Expand Down Expand Up @@ -71,7 +71,7 @@ fn symbols_type_deduction() {
Ta: 'a';
Tb: 'b';
Tc: 'c';
"#
"
.parse()
.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion rustemo-compiler/src/table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ mod tests {
assert_eq!(per_next_symbol.len(), 4);
assert_eq!(
per_next_symbol.keys().cloned().collect::<Vec<_>>(),
vec![1, 2, 3, 5]
[1, 2, 3, 5]
.iter()
.map(|v| SymbolIndex(*v))
.collect::<Vec<_>>()
Expand Down

0 comments on commit 2f21289

Please sign in to comment.