From 0315bd44cb6786862a5f3e94415f30559c001394 Mon Sep 17 00:00:00 2001 From: Vladislav Mamon Date: Wed, 13 Dec 2023 23:52:18 +0300 Subject: [PATCH] refactor(parser): slightly change host parser --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 55eefc9..acdb399 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -27,7 +27,7 @@ pub(crate) fn shortcut(input: &str) -> Result { /// - `gitlab` or `gl` /// - `bitbucket` or `bb` fn host() -> impl Parser> { - let host = filter::<_, _, Cheap>(|ch: &char| ch.is_ascii_alphabetic()) + let host = filter::<_, _, Cheap>(char::is_ascii_alphabetic) .repeated() .at_least(1) .collect::()