From bdd923d3a70c1905ab6733abf61b7914e3c9c1c7 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 22 Oct 2024 17:22:48 -0400 Subject: [PATCH] refactor: narrow `{,Unimplemented}DirectiveKind` to `pub(crate)` --- naga/src/front/wgsl/parse/directive.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/naga/src/front/wgsl/parse/directive.rs b/naga/src/front/wgsl/parse/directive.rs index 1627f1288..cadc8a9e2 100644 --- a/naga/src/front/wgsl/parse/directive.rs +++ b/naga/src/front/wgsl/parse/directive.rs @@ -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, }