-
Notifications
You must be signed in to change notification settings - Fork 220
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
feat: Add ChangeSet that can be collected into from iterators, and joined over for easy application to components #344
Conversation
e6e23b5
to
bbe5749
Compare
Reviewed 8 of 8 files at r1, 1 of 1 files at r2. Comments from Reviewable |
Thank you! Review status: all files reviewed at latest revision, all discussions resolved, some commit checks pending. Comments from Reviewable |
Not 100% ready yet. |
bbe5749
to
3ef9e9b
Compare
Ready now I believe. |
Reviewed 1 of 1 files at r3. src/changeset.rs, line 58 at r3 (raw file):
I don't think the src/changeset.rs, line 73 at r3 (raw file):
An src/changeset.rs, line 86 at r3 (raw file):
I think we also need an implementation for Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions. src/changeset.rs, line 47 at r3 (raw file):
One might want to keep the Comments from Reviewable |
…ined over for easy application to components
3ef9e9b
to
a05bff4
Compare
Review status: 7 of 8 files reviewed at latest revision, 4 unresolved discussions. src/changeset.rs, line 47 at r3 (raw file): Previously, torkleyy (Thomas Schaller) wrote…
Done. src/changeset.rs, line 58 at r3 (raw file): Previously, torkleyy (Thomas Schaller) wrote…
Done. src/changeset.rs, line 73 at r3 (raw file): Previously, torkleyy (Thomas Schaller) wrote…
Done. src/changeset.rs, line 86 at r3 (raw file): Previously, torkleyy (Thomas Schaller) wrote…
Done. Comments from Reviewable |
} | ||
|
||
unsafe fn get(v: &mut Self::Value, id: Index) -> Self::Type { | ||
let value: *mut Self::Value = v as *mut Self::Value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is taken from the Join on &mut Storage, it's required for the compiler to understand that v is mutable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fails to validate the lifetime without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The basic issue is that it fails to match &mut on the function signature to &'a for the Join implementation, and it's not possible to set &'a on the function signature because it would not match the trait then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right.
Reviewed 1 of 1 files at r4. src/changeset.rs, line 40 at r4 (raw file):
This needs a src/changeset.rs, line 76 at r4 (raw file):
Can use Comments from Reviewable |
Thank you! bors r+ Review status: all files reviewed at latest revision, all discussions resolved, all commit checks successful. Comments from Reviewable |
344: feat: Add ChangeSet that can be collected into from iterators, and joined over for easy application to components r=torkleyy a=Rhuagh <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/slide-rs/specs/344) <!-- Reviewable:end -->
Build succeeded |
This change is