Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upVarious improvements, clean up warnings, restructure constructors #81
Conversation
| @@ -35,6 +21,54 @@ pub struct Matrix4<T> { | |||
| pub m41: T, pub m42: T, pub m43: T, pub m44: T, | |||
| } | |||
|
|
|||
| impl<T: Float> Matrix4<T> { | |||
| pub fn new( | |||
This comment has been minimized.
This comment has been minimized.
Manishearth
Jun 9, 2015
Member
Note: We discussed removing the generics from this entirely in the meeting. But we can merge this independently.
cc @glennw
|
Have you updated Servo already? |
@Ms2ger Not yet. I wasn't sure if the changes in the pull requests were desired. If they are, I can make the changes to servo |
|
|
|
From IRC:
|
|
@glennw Rebased |
|
@frewsxcv Looks good to me. Want to get the PRs done for rust-layers and servo (any anything else that needs it), and then we can merge them all at around the same time? |
|
Maybe this should bump the version in Cargo.toml to 0.2.0? That might make it easier to track which downstream packages have been updated. |
|
@mbrubeck Are you OK with this now? It looks fine to me. |
|
Associated PRs: Admittedly this does add a few characters per initialization, but I don't think it harms readability and ends up being more idiomatic. |
|
Yes, LGTM. |
Various improvements, clean up warnings, restructure constructors
Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6349) <!-- Reviewable:end -->
Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6349) <!-- Reviewable:end -->
Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6349) <!-- Reviewable:end -->
Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6349) <!-- Reviewable:end -->
…anges); r=pcwalton Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ Source-Repo: https://github.com/servo/servo Source-Revision: cfcd8589d06935f83b903f76477ea03e4d4652d0
…anges); r=pcwalton Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ Source-Repo: https://github.com/servo/servo Source-Revision: cfcd8589d06935f83b903f76477ea03e4d4652d0 UltraBlame original commit: d70837d5150f00c1534f60d6ca265952259c90a3
…anges); r=pcwalton Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ Source-Repo: https://github.com/servo/servo Source-Revision: cfcd8589d06935f83b903f76477ea03e4d4652d0 UltraBlame original commit: d70837d5150f00c1534f60d6ca265952259c90a3
…anges); r=pcwalton Shouldn't be merged until these have merged: servo/euclid#81 servo/surfman#13 servo/rust-layers#178 ~~I'll also need to update the Cargo lock files once they merge~~ Source-Repo: https://github.com/servo/servo Source-Revision: cfcd8589d06935f83b903f76477ea03e4d4652d0 UltraBlame original commit: d70837d5150f00c1534f60d6ca265952259c90a3
frewsxcv commentedJun 9, 2015
Basically, just check each individual commit. If not all of this is wanted, feel free to cherry pick.