Skip to content

Commit 657eecb

Browse files
authored
Merge pull request #582 from ratmice/rust_edition_non_exhaustive
Make lrpar RustEdition `#[non_exhaustive]`
2 parents 7831d2d + 7b303cc commit 657eecb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lrpar/src/lib/ctbuilder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ pub enum Visibility {
170170
///
171171
/// [Rust Edition]: https://doc.rust-lang.org/edition-guide/rust-2021/index.html
172172
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
173+
#[non_exhaustive]
173174
pub enum RustEdition {
174175
Rust2015,
175176
Rust2018,

0 commit comments

Comments
 (0)