Skip to content

Commit

Permalink
refactor: narrow {,Unimplemented}DirectiveKind to pub(crate)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Oct 23, 2024
1 parent 9c781d6 commit bdd923d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions naga/src/front/wgsl/parse/directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub mod enable_extension;

/// A parsed sentinel word indicating the type of directive to be parsed next.
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
pub enum DirectiveKind {
pub(crate) enum DirectiveKind {
/// An [`enable_extension`].
Enable,
Unimplemented(UnimplementedDirectiveKind),
Expand Down Expand Up @@ -49,7 +49,7 @@ impl DirectiveKind {
/// A [`DirectiveKind`] that is not yet implemented. See [`DirectiveKind::Unimplemented`].
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
#[cfg_attr(test, derive(strum::EnumIter))]
pub enum UnimplementedDirectiveKind {
pub(crate) enum UnimplementedDirectiveKind {
Diagnostic,
Requires,
}
Expand Down

0 comments on commit bdd923d

Please sign in to comment.