Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api updates #387

Merged
merged 6 commits into from
Dec 4, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up some iteration
  • Loading branch information
brendanzab committed Dec 3, 2015
commit 9edd6f207f3ea82da8064793a6e1565b0e2da465
2 changes: 1 addition & 1 deletion gl_generator/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ impl<R: io::Read> RegistryParser<R> {
XmlEvent::EndElement{ref name} => {
debug!("Found end element </{:?}>", name);

if (&[one, two]).iter().any(|&x| x == name.local_name) {
if one == name.local_name || two == name.local_name {
continue;
} else if "type" == name.local_name {
// XXX: GL1.1 contains types, which we never care about anyway.
Expand Down