chore: clippy fix
This commit is contained in:
parent
c76e5fa960
commit
abed43a169
2 changed files with 3 additions and 3 deletions
|
|
@ -472,7 +472,7 @@ impl NfaBuilder {
|
|||
)
|
||||
})?;
|
||||
for c in code_points {
|
||||
if let Some(c) = std::char::from_u32(*c) {
|
||||
if let Some(c) = char::from_u32(*c) {
|
||||
chars = chars.add_char(c);
|
||||
}
|
||||
}
|
||||
|
|
@ -490,7 +490,7 @@ impl NfaBuilder {
|
|||
for (category, code_points) in UNICODE_CATEGORIES.iter() {
|
||||
if category.starts_with(&category_letter) {
|
||||
for c in code_points {
|
||||
if let Some(c) = std::char::from_u32(*c) {
|
||||
if let Some(c) = char::from_u32(*c) {
|
||||
chars = chars.add_char(c);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -686,7 +686,7 @@ impl Generator {
|
|||
.advance_actions
|
||||
.iter()
|
||||
.map(|(chars, action)| {
|
||||
let is_included = !chars.contains(std::char::MAX);
|
||||
let is_included = !chars.contains(char::MAX);
|
||||
let mut ranges;
|
||||
if is_included {
|
||||
ranges = chars.simplify_ignoring(&ruled_out_chars);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue