Skip to content

Docs for ip, addrinfo modules. Ad more Option examples #12971

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

Closed
wants to merge 3 commits into from

Conversation

ehsanul
Copy link
Contributor

@ehsanul ehsanul commented Mar 17, 2014

No description provided.

use std::io::net::ip::IpAddr;

fn main(){
let ips: ~[IpAddr] = addrinfo::get_host_addresses("rust-lang.org").unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type ascription shouldn't be necessary, and it would allow you to remove one of the imports above.

@ehsanul
Copy link
Contributor Author

ehsanul commented Mar 18, 2014

@alexcrichton r?

@alexcrichton
Copy link
Member

@ehsanul, this needs a rebase. The option module got some new documentation recently, so I'd make sure your additions still fit in with the new documentation.

@alexcrichton
Copy link
Member

Closing due to inactivity, but feel free to reopen with a rebase!

@ehsanul ehsanul deleted the doc-sprint branch November 9, 2020 03:15
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 22, 2025
…enum variants used as functions in the same crate (rust-lang#12971)

Fixes rust-lang#12551

changelog: [`empty_enum_variants_with_brackets`]: Do not lint reachable
enums or enums which are used as functions within the same crate.

r? @xFrednet
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.

2 participants