Skip to content

Conversation

@nical
Copy link
Contributor

@nical nical commented May 29, 2017

There was a mix between things that were reexported in lib.rs (most types) all of which were also accessible through their modules (you get to choose between euclid::Bar and euclid::foo::Bar), and a few that were public but only accessible in sub modules.
Let's clean this up and export everything public in lib.rs. A nice side effect of this is that it makes it possible to export the function euclid::rect which was otherwise clashing with the module euclid::rect.


This change is Reviewable

@nical
Copy link
Contributor Author

nical commented May 29, 2017

r? @kvark

Edit: switched reviewer from @nox to @kvark

@kvark
Copy link
Member

kvark commented May 29, 2017

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 6610d5f has been approved by kvark

@bors-servo
Copy link
Contributor

⌛ Testing commit 6610d5f with merge 95d41dc...

bors-servo pushed a commit that referenced this pull request May 29, 2017
Re-export all euclid types and hide the module hierarchy.

There was a mix between things that were reexported in lib.rs (most types) all of which were also accessible through their modules (you get to choose between euclid::Bar and euclid::foo::Bar), and a few that were public but only accessible in sub modules.
Let's clean this up and export everything public in lib.rs. A nice side effect of this is that it makes it possible to export the function euclid::rect which was otherwise clashing with the module euclid::rect.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/199)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: kvark
Pushing 95d41dc to master...

@bors-servo bors-servo merged commit 6610d5f into servo:master May 29, 2017
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 this pull request may close these issues.

3 participants