Skip to content

Commit 82427ef

Browse files
WumpfErichDonGubler
authored andcommitted
refactor: impl From<ImplementedEnableExtension> for EnableExtension
1 parent 9853f59 commit 82427ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

naga/src/front/wgsl/parse/directive/enable_extension.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ pub enum EnableExtension {
4343
Unimplemented(UnimplementedEnableExtension),
4444
}
4545

46+
impl From<ImplementedEnableExtension> for EnableExtension {
47+
fn from(value: ImplementedEnableExtension) -> Self {
48+
Self::Implemented(value)
49+
}
50+
}
51+
4652
impl EnableExtension {
4753
const F16: &'static str = "f16";
4854
const CLIP_DISTANCES: &'static str = "clip_distances";

0 commit comments

Comments
 (0)