[GH-ISSUE #2044] read_system_conf returns different Error types on unix vs windows #859

Closed
opened 2026-03-16 00:37:00 +03:00 by kerem · 1 comment
Owner

Originally created by @seanmonstar on GitHub (Oct 3, 2023).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2044

Describe the bug
On Windows, read_system_conf() has the return type ResolveResult<(ResolverConfig, ResolverOpts)>, whereas on Unix, it has the return type of io::Result<(ResolverConfig, ResolverOpts)>.

Is this intentional? If so, should users expect to use #[cfg] to handle the difference in types?

Version:
Crate: resolver
Version: 0.23.0

Additional context
Noticed here: https://github.com/seanmonstar/reqwest/issues/1991

Originally created by @seanmonstar on GitHub (Oct 3, 2023). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2044 **Describe the bug** On Windows, `read_system_conf()` has the return type `ResolveResult<(ResolverConfig, ResolverOpts)>`, whereas on Unix, it has the return type of `io::Result<(ResolverConfig, ResolverOpts)>`. Is this intentional? If so, should users expect to use `#[cfg]` to handle the difference in types? **Version:** Crate: resolver Version: 0.23.0 **Additional context** Noticed here: https://github.com/seanmonstar/reqwest/issues/1991
kerem closed this issue 2026-03-16 00:37:05 +03:00
Author
Owner

@djc commented on GitHub (Oct 4, 2023):

Probably more like an oversight. Proposed fix in #2047.

<!-- gh-comment-id:1746737072 --> @djc commented on GitHub (Oct 4, 2023): Probably more like an oversight. Proposed fix in #2047.
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#859
No description provided.