From 242f5e77899e708177cd9b6b1065bb7d277e2d68 Mon Sep 17 00:00:00 2001 From: Tormod Gjeitnes Hellen Date: Wed, 15 Mar 2023 01:45:37 +0100 Subject: [PATCH] Make empty_flag() const. --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 944517f5..ab868fdb 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -82,7 +82,7 @@ impl ParseError { } /// A hex or named flag wasn't found between separators. - pub fn empty_flag() -> Self { + pub const fn empty_flag() -> Self { ParseError(ParseErrorKind::EmptyFlag) } }