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

Make mod host public #265

Closed
wants to merge 1 commit into from
Closed

Make mod host public #265

wants to merge 1 commit into from

Conversation

@valenting
Copy link
Collaborator

valenting commented Dec 30, 2016

This just makes the mod public, so I can call into Host::parse() from rust_url_capi.
@Manishearth @SimonSapin


This change is Reviewable

@nox
Copy link
Member

nox commented Dec 30, 2016

You can already call it. https://docs.rs/url/1.2.4/url/enum.Host.html#method.parse

A module doesn't need to be public for public methods in it to be exposed outside, what matters is whether the type on which the method is is exposed or not.

@valenting
Copy link
Collaborator Author

valenting commented Dec 30, 2016

Oh, I hadn't noticed the enum is public. @nox thanks for pointing it out. Sorry for the noise.

@valenting valenting closed this Dec 30, 2016
@nox
Copy link
Member

nox commented Dec 30, 2016

@valenting No problem. :)

@valenting valenting deleted the valenting:pub_host branch Dec 30, 2016
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

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