Skip to content

Commit

Permalink
Merge pull request #313 from tormeh/tormod/const-empty-flag
Browse files Browse the repository at this point in the history
Make empty_flag() const.
  • Loading branch information
KodrAus committed Mar 15, 2023
2 parents 2c12c2e + 242f5e7 commit ad02711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit ad02711

Please sign in to comment.