diff options
author | Nicolas Holzschuch <n.holzschuch@free.fr> | 2024-04-23 19:12:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 13:12:19 -0400 |
commit | bb8601b2bafb5e68181cbbb84e6ffa4f7a72bf16 (patch) | |
tree | 0d516a06c869e56b8324bed5f55af905dd1246f4 /crates/cli | |
parent | 02b47b7469ac8fc9e7dcb390415644f33e500b72 (diff) |
printer: make compilation on non-unix, non-windows platforms work
Some of the new hyperlink work caused ripgrep to stop compiling
on non-{Unix,Windows} platforms. The most popular of which is WASI.
This commit makes non-{Unix,Windows} compile again. And we add a
very basic WASI test in CI to catch regressions.
More work is needed to make tests on non-{Unix,Windows} platforms
work. And of course, this commit specifically takes the path of disabling
hyperlink support for non-{Unix,Windows} platforms.
Diffstat (limited to 'crates/cli')
-rw-r--r-- | crates/cli/src/hostname.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/cli/src/hostname.rs b/crates/cli/src/hostname.rs index 37ad54c7..0a3ae370 100644 --- a/crates/cli/src/hostname.rs +++ b/crates/cli/src/hostname.rs @@ -25,10 +25,10 @@ pub fn hostname() -> io::Result<OsString> { } #[cfg(not(any(windows, unix)))] { - io::Error::new( + Err(io::Error::new( io::ErrorKind::Other, "hostname could not be found on unsupported platform", - ) + )) } } |