From 2775d48f41b5523741ffc648344ddc73e59cfe86 Mon Sep 17 00:00:00 2001 From: Zakarum Date: Mon, 9 May 2022 19:16:48 +0400 Subject: [PATCH] Use Some from $crate --- src/custom_keyword.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom_keyword.rs b/src/custom_keyword.rs index 69d787e54a..a3ec9d4cb7 100644 --- a/src/custom_keyword.rs +++ b/src/custom_keyword.rs @@ -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