Skip to content

Commit

Permalink
Rename _err to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AZWN committed Nov 24, 2023
1 parent 3963e99 commit 5817a1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scopegraphs-macros/src/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub(crate) struct RegexInput {
_close: Token![>],
_equals: Token![=],
regex: Regex,
_err: Vec<syn::Error>,
errors: Vec<syn::Error>,
}

impl Parse for RegexInput {
Expand All @@ -31,7 +31,7 @@ impl Parse for RegexInput {
let alphabet_type = input.parse()?;
let _close = input.parse()?;
let _equals = input.parse()?;
let (regex, _err) = match input.parse() {
let (regex, errors) = match input.parse() {
Ok(re) => (re, vec![]),
Err(err) => (Regex::Complement(Rc::new(Regex::EmptySet)), vec![err]),
};
Expand All @@ -44,14 +44,14 @@ impl Parse for RegexInput {
_close,
_equals,
regex,
_err,
errors,
})
}
}

impl RegexInput {
pub fn compile(self) -> TokenStream {
let mut errors = self._err;
let mut errors = self.errors;
#[cfg(feature = "dot")]
let mut graph = None;

Expand Down

0 comments on commit 5817a1d

Please sign in to comment.