Skip to content

Commit

Permalink
Use Some from $crate
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarumych committed May 9, 2022
1 parent 63f6c9f commit 2775d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom_keyword.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ macro_rules! impl_parse_for_custom_keyword {
// For peek.
impl $crate::token::CustomToken for $ident {
fn peek(cursor: $crate::buffer::Cursor) -> $crate::__private::bool {
if let Some((ident, _rest)) = cursor.ident() {
if let $crate::__private::Some((ident, _rest)) = cursor.ident() {
ident == stringify!($ident)
} else {
false
Expand Down

0 comments on commit 2775d48

Please sign in to comment.