mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
refactor: narrow {,Unimplemented}DirectiveKind to pub(crate)
This commit is contained in:
1 parent
9c781d64d6
commit
bdd923d3a7
1 file changed
+2
-2
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user