Skip to content

Commit 242f5e7

Browse files
committed
Make empty_flag() const.
1 parent 2c12c2e commit 242f5e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl ParseError {
8282
}
8383

8484
/// A hex or named flag wasn't found between separators.
85-
pub fn empty_flag() -> Self {
85+
pub const fn empty_flag() -> Self {
8686
ParseError(ParseErrorKind::EmptyFlag)
8787
}
8888
}

0 commit comments

Comments
 (0)