Skip to content

Commit

Permalink
test(naga): add missing variants to DirectiveKind::iter
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Oct 24, 2024
1 parent 64a61ee commit ca6f6f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion naga/src/front/wgsl/parse/directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ impl DirectiveKind {
fn iter() -> impl Iterator<Item = Self> {
use strum::IntoEnumIterator;

UnimplementedDirectiveKind::iter().map(Self::Unimplemented)
[Self::Enable, Self::Requires]
.into_iter()
.chain(UnimplementedDirectiveKind::iter().map(Self::Unimplemented))
}
}

Expand Down

0 comments on commit ca6f6f3

Please sign in to comment.