Skip to content

Commit

Permalink
Fix rustfmt warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarx committed Apr 26, 2023
1 parent 5419b1f commit c0a2de3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ reorder_imports = true
reorder_modules = true
remove_nested_parens = true
match_arm_leading_pipes = "Never"
fn_args_layout = "Tall"
fn_params_layout = "Tall"
edition = "2021"
merge_derives = true
use_try_shorthand = false
Expand Down
2 changes: 2 additions & 0 deletions src/io/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ pub fn all_input_consumed<'a, T: 'a>(
pub fn comment(input: Span) -> IntermediateResult<()> {
alt((
value((), pair(tag("%"), is_not("\n\r"))),
// a comment that immediately precedes the end of the line –
// this must come after the normal line comment above
value((), tag("%")),
))(input)
}
Expand Down

0 comments on commit c0a2de3

Please sign in to comment.