Skip to content

Commit

Permalink
type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
hudson-ai committed Nov 11, 2024
1 parent 49b8b6b commit d576962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/src/json/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{collections::HashMap, vec};
use super::formats::lookup_format;
use super::numeric::{rx_float_range, rx_int_range};
use crate::{
api::{GrammarWithLexer, RegexSpec, TopLevelGrammar, RegexId},
api::{GrammarWithLexer, RegexSpec, TopLevelGrammar},
GrammarBuilder, NodeRef,
};

Expand Down Expand Up @@ -599,7 +599,7 @@ impl Compiler {
taken_names
.iter()
.map(|n| self.builder.regex.literal(n.to_string()))
.collect::<Vec<RegexId>>();
.collect::<Vec<_>>();
let taken = self.builder.regex.select(taken_name_ids);
let not_taken = self.builder.regex.not(taken);
let valid = self.builder.regex.regex(r#""([^"\\]|\\["\\/bfnrt]|\\u[0-9a-fA-F]{4})*""#.to_string());
Expand Down

0 comments on commit d576962

Please sign in to comment.