Skip to content

Commit

Permalink
fixup! refactor: split handle validation into early pass in `Validato…
Browse files Browse the repository at this point in the history
…r::validate`

Resolves
<gfx-rs#2090 (comment)>.
  • Loading branch information
ErichDonGubler committed Dec 16, 2022
1 parent b4d4c24 commit b43468a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/valid/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ impl super::Validator {
base,
size,
stride: _,
} => {
}
| &crate::TypeInner::BindingArray { base, size } => {
this_handle.check_dep(base)?;
validate_array_size(size)?;
}
Expand All @@ -91,10 +92,6 @@ impl super::Validator {
} => {
this_handle.check_dep_iter(members.iter().map(|m| m.ty))?;
}
&crate::TypeInner::BindingArray { base, size } => {
this_handle.check_dep(base)?;
validate_array_size(size)?;
}
}
}

Expand Down

0 comments on commit b43468a

Please sign in to comment.