Skip to content

Commit

Permalink
Merge pull request #1171 from zakarumych/fix-some
Browse files Browse the repository at this point in the history
Use Some from $crate
  • Loading branch information
dtolnay committed May 10, 2022
2 parents 63f6c9f + 2775d48 commit 16ef95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom_keyword.rs
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 16ef95e

Please sign in to comment.