Skip to content

Commit b4fbd70

Browse files
committed
feat(api)!: mark a type as non_exhaustive
1 parent 79d0b45 commit b4fbd70

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/args/threads.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub enum Threads {
1717

1818
/// Error that occurs when converting a string to an instance of [`Threads`].
1919
#[derive(Debug, Display, Clone, PartialEq, Eq, Error)]
20+
#[non_exhaustive]
2021
pub enum FromStrError {
2122
#[display("Value is neither {AUTO:?}, {MAX:?}, nor a number: {_0}")]
2223
InvalidSyntax(ParseIntError),

0 commit comments

Comments
 (0)