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

Re-export all euclid types and hide the module hierarchy. #199

Merged
merged 1 commit into from May 29, 2017

Conversation

@nical
Copy link
Collaborator

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
Collaborator Author

nical commented May 29, 2017

r? @kvark

Edit: switched reviewer from @nox to @kvark

@nical nical force-pushed the nical:mod-exports branch from 57496eb to 6610d5f May 29, 2017
@kvark
kvark approved these changes May 29, 2017
@kvark
Copy link
Member

kvark commented May 29, 2017

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2017

📌 Commit 6610d5f has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2017

Testing commit 6610d5f with merge 95d41dc...

bors-servo added 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

bors-servo commented May 29, 2017

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

@bors-servo bors-servo merged commit 6610d5f into servo:master May 29, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.