Skip to content

Commit

Permalink
Revert "chore: fmt"
Browse files Browse the repository at this point in the history
This reverts commit 62cbc23.
  • Loading branch information
carloskiki committed Aug 6, 2024
1 parent 62cbc23 commit 925242f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ impl Grouping {
Self::Multline => GroupingKind::Multline,
Self::Split => GroupingKind::Split,
}

}
}

Expand Down Expand Up @@ -369,7 +370,7 @@ impl GroupingKind {
Self::Split => "\\begin{split}",
}
}

pub(crate) fn closing_str(&self) -> &'static str {
match self {
Self::Normal => "}",
Expand Down
2 changes: 1 addition & 1 deletion src/parser/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::{error::Error, fmt::Display};

use super::SpanStack;
use crate::event::GroupingKind;
use crate::event::{Grouping, GroupingKind};

/// Anything that could possibly go wrong while parsing.
///
Expand Down
4 changes: 1 addition & 3 deletions src/parser/lex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,7 @@ pub fn token<'a>(input: &mut &'a str) -> InnerResult<Token<'a>> {
#[cfg(test)]
mod tests {
use crate::{
attribute::DimensionUnit,
event::GroupingKind,
parser::{lex, Token},
attribute::DimensionUnit, event::GroupingKind, parser::{lex, Token}
};

#[test]
Expand Down
10 changes: 5 additions & 5 deletions src/parser/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ use core::panic;
use crate::{
attribute::{DimensionUnit, Font},
event::{
ArrayColumn as AC, ColorChange as CC, ColorTarget as CT, ColumnAlignment, Content as C,
DelimiterSize, DelimiterType, Event as E, Grouping as G, GroupingKind, Line,
RelationContent, ScriptPosition as SP, ScriptType as ST, StateChange as SC, Style as S,
Visual as V,
ArrayColumn as AC, ColorChange as CC, ColorTarget as CT, ColumnAlignment, Content as C, DelimiterSize, DelimiterType, Event as E, Grouping as G, GroupingKind, Line, RelationContent, ScriptPosition as SP, ScriptType as ST, StateChange as SC, Style as S, Visual as V
},
};

Expand Down Expand Up @@ -1649,7 +1646,10 @@ impl<'b, 'store> InnerParser<'b, 'store> {
false
};

let content = lex::group_content(&mut self.content, environment.as_kind())?;
let content = lex::group_content(
&mut self.content,
environment.as_kind()
)?;
self.buffer.push(I::Event(E::Begin(environment)));
if let Some(style) = style {
self.buffer.push(I::Event(E::StateChange(SC::Style(style))));
Expand Down

0 comments on commit 925242f

Please sign in to comment.