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

add unchecked variant to avoid redundant validation #421

Open
github-actions bot opened this issue Jul 10, 2024 · 5 comments
Open

add unchecked variant to avoid redundant validation #421

github-actions bot opened this issue Jul 10, 2024 · 5 comments
Labels
code:todo A TODO/FIXME comment in code.

Comments

@github-actions
Copy link

return Err(QuerySingleError::MultipleEntities);
}
// TODO: add unchecked variant to avoid redundant validation
self.get_idx(i).ok_or(QuerySingleError::NoEntities)
}
/// Get a mutable reference to the component store if there is exactly one instance of the
/// component.


This issue was generated by todo-issue based on a TODO comment in 4d96146.
@github-actions github-actions bot added the code:todo A TODO/FIXME comment in code. label Jul 10, 2024
Copy link
Author

add unchecked variant to avoid redundant validation

return Err(QuerySingleError::MultipleEntities);
}
// TODO: add unchecked variant to avoid redundant validation
self.get_idx_mut(i).ok_or(QuerySingleError::NoEntities)
}
/// Iterates immutably over all components of this type.
///


This comment was generated by todo-issue based on a TODO comment in 4d96146.

Copy link
Author

Closing Issue

This comment was generated by todo-issue based on the deletion of a TODO comment in cfce040.

Copy link
Author

Closing Issue

This comment was generated by todo-issue based on the deletion of a TODO comment in cfce040.

@github-actions github-actions bot reopened this Sep 11, 2024
Copy link
Author

add unchecked variant to avoid redundant validation

return Err(QuerySingleError::MultipleEntities);
}
// TODO: add unchecked variant to avoid redundant validation
self.get_idx_mut(i).ok_or(QuerySingleError::NoEntities)
}
/// Iterates immutably over all components of this type.
///


This comment was generated by todo-issue based on a TODO comment in e20862b.

Copy link
Author

add unchecked variant to avoid redundant validation

return Err(QuerySingleError::MultipleEntities);
}
// TODO: add unchecked variant to avoid redundant validation
self.get_idx(i).ok_or(QuerySingleError::NoEntities)
}
/// Get a mutable reference to the component store if there is exactly one instance of the
/// component.


This comment was generated by todo-issue based on a TODO comment in e20862b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code:todo A TODO/FIXME comment in code.
Projects
None yet
Development

No branches or pull requests

0 participants