Merge pull request #1171 from zakarumych/fix-some

Use Some from $crate
This commit is contained in:
David Tolnay 2022-05-09 18:44:23 -07:00 committed by GitHub
commit 16ef95e38a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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