Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasRanarison committed Mar 31, 2024
1 parent 4163458 commit eae702e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: Run tests
run: cargo test --all-features --verbose
- name: Run lint
run: cargo clippy --verbose
run: cargo clippy --verbose -- -D warnings
4 changes: 2 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ fn parse_class_members_inner(

if let Some(rest) = rest.strip_prefix('-') {
let (upper, _, rest) = parse_char(rest)?;
let acc = vec![acc, vec![ClassMember::Range(ch, upper)]].concat();
let acc = [acc, vec![ClassMember::Range(ch, upper)]].concat();
parse_class_members_inner(rest, acc)
} else {
let acc = vec![acc, vec![ClassMember::Atom(ch)]].concat();
let acc = [acc, vec![ClassMember::Atom(ch)]].concat();
parse_class_members_inner(rest, acc)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,11 @@ impl<'a> Match<'a> {

#[cfg(test)]
mod test {
use std::collections::HashMap;
// use std::collections::HashMap;

use crate::{
regex::{Match, Regex},
Capture,
// Capture,
};

#[test]
Expand Down

0 comments on commit eae702e

Please sign in to comment.