From bb8601b2bafb5e68181cbbb84e6ffa4f7a72bf16 Mon Sep 17 00:00:00 2001 From: Nicolas Holzschuch Date: Tue, 23 Apr 2024 19:12:19 +0200 Subject: 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. --- crates/cli/src/hostname.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/cli') 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 { } #[cfg(not(any(windows, unix)))] { - io::Error::new( + Err(io::Error::new( io::ErrorKind::Other, "hostname could not be found on unsupported platform", - ) + )) } } -- cgit v1.2.3