Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Aug 13, 2023
1 parent 73d2a24 commit 6a87c69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type Span<'a> = LocatedSpan<&'a str>;

struct Token<'a> {
pub position: Span<'a>,
pub foo: &'a str,
pub bar: &'a str,
pub _foo: &'a str,
pub _bar: &'a str,
}

fn parse_foobar(s: Span) -> IResult<Span, Token> {
Expand All @@ -23,8 +23,8 @@ fn parse_foobar(s: Span) -> IResult<Span, Token> {
s,
Token {
position: pos,
foo: foo.fragment(),
bar: bar.fragment(),
_foo: foo.fragment(),
_bar: bar.fragment(),
},
))
}
Expand Down

0 comments on commit 6a87c69

Please sign in to comment.