From 4d17237acda99b493be3e1bbabdad428f1ca22d8 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Fri, 24 Oct 2025 10:45:38 -0400 Subject: [PATCH] fix: Compilation broken on macOS --- src/profiler.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/profiler.rs b/src/profiler.rs index 0e6f702..ed4f366 100644 --- a/src/profiler.rs +++ b/src/profiler.rs @@ -32,10 +32,9 @@ impl JfrFile { #[cfg(not(target_os = "linux"))] fn new() -> Result { - io::Error::new( - io::ErrorKind::Other, + Err(io::Error::other( "async-profiler is only supported on Linux", - ) + )) } fn swap(&mut self) {