Skip to content

Commit

Permalink
fix: formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Aug 17, 2024
1 parent 8800268 commit a682f0b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions harper-core/src/parsers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub trait StrParser {

impl<T> StrParser for T
where
T: Parser,
T: Parser
{
fn parse_str(&mut self, source: impl AsRef<str>) -> Vec<Token> {
let source: Vec<_> = source.as_ref().chars().collect();
Expand All @@ -37,7 +37,7 @@ mod tests {
fn assert_tokens_eq(
test_str: impl AsRef<str>,
expected: &[TokenKind],
parser: &mut impl Parser,
parser: &mut impl Parser
) {
let chars: Vec<_> = test_str.as_ref().chars().collect();
let tokens = parser.parse(&chars);
Expand Down Expand Up @@ -74,8 +74,8 @@ mod tests {
Space(1),
TokenKind::blank_word(),
Space(1),
TokenKind::blank_word(),
],
TokenKind::blank_word()
]
)
}

Expand All @@ -91,8 +91,8 @@ mod tests {
Space(1),
TokenKind::blank_word(),
Space(1),
TokenKind::blank_word(),
],
TokenKind::blank_word()
]
);
}

Expand All @@ -108,8 +108,8 @@ mod tests {
Newline(2),
TokenKind::blank_word(),
Space(1),
TokenKind::blank_word(),
],
TokenKind::blank_word()
]
);
}

Expand Down

0 comments on commit a682f0b

Please sign in to comment.