[GH-ISSUE #1950] Is there a problem with readme example ? #829

Closed
opened 2026-03-16 00:27:22 +03:00 by kerem · 2 comments
Owner

Originally created by @biswanaths on GitHub (May 29, 2023).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1950

Regarding https://github.com/bluejekyll/trust-dns/tree/main/crates/client#example

The following code snippet seems to erroring out with compiler asking for type hint.

let address = "8.8.8.8:53".parse().unwrap();

Is the code snippet wrong or I am doing some thing wrong when trying out the example ?

Originally created by @biswanaths on GitHub (May 29, 2023). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1950 Regarding https://github.com/bluejekyll/trust-dns/tree/main/crates/client#example The following code snippet seems to erroring out with compiler asking for type hint. `let address = "8.8.8.8:53".parse().unwrap(); ` Is the code snippet wrong or I am doing some thing wrong when trying out the example ?
kerem closed this issue 2026-03-16 00:27:27 +03:00
Author
Owner

@djc commented on GitHub (May 29, 2023):

This question is hard to answer without the actual error you got from the compiler.

(Did you read the compiler error and try to follow its direction?)

<!-- gh-comment-id:1567525423 --> @djc commented on GitHub (May 29, 2023): This question is hard to answer without the actual error you got from the compiler. (Did you read the compiler error and try to follow its direction?)
Author
Owner

@biswanaths commented on GitHub (May 29, 2023):

Sorry for the trouble.
Trying to parse without the using the parsed address, compiler could not get type inference.

Thank you for the offer of help. And sorry for the trouble.

<!-- gh-comment-id:1567536023 --> @biswanaths commented on GitHub (May 29, 2023): Sorry for the trouble. Trying to parse without the using the parsed address, compiler could not get type inference. Thank you for the offer of help. And sorry for the trouble.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#829
No description provided.