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

Cannot use Registry::iter() without mutable reference. #109

Closed
lberezy opened this issue Aug 1, 2019 · 1 comment · Fixed by #110
Closed

Cannot use Registry::iter() without mutable reference. #109

lberezy opened this issue Aug 1, 2019 · 1 comment · Fixed by #110

Comments

@lberezy
Copy link
Contributor

lberezy commented Aug 1, 2019

pub fn iter(&mut self) -> slice::Iter<Box<dyn Component<A>>> {

Is the &mut self a bug (should be just &self to allow non-mutable usage)?

@tarcieri
Copy link
Collaborator

tarcieri commented Aug 1, 2019

Yes, definitely a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants