Commit 3c10117
committed
Fix Windows compilation errors in client config
Two issues prevented compilation on Windows:
1. The `Host::Unix(_)` match arm in `get_hostname()` was not gated
with `#[cfg(unix)]`, but the `Host::Unix` variant itself is
conditionally compiled only on Unix. This caused E0599.
2. The `#[cfg(not(unix))]` version of `host_param()` used `Error`
as the return type instead of `PgWireClientError`, causing E0412.1 parent b41905e commit 3c10117
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
1092 | 1093 | | |
1093 | 1094 | | |
1094 | 1095 | | |
1095 | | - | |
| 1096 | + | |
1096 | 1097 | | |
1097 | 1098 | | |
1098 | 1099 | | |
| |||
0 commit comments