Skip to content

Commit ad02711

Browse files
authored
Merge pull request #313 from tormeh/tormod/const-empty-flag
Make empty_flag() const.
2 parents 2c12c2e + 242f5e7 commit ad02711

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)