mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-24 15:54:00 +00:00
refactor: narrow {,Unimplemented}DirectiveKind
to pub(crate)
This commit is contained in:
parent
9c781d64d6
commit
bdd923d3a7
@ -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),
|
||||
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user