Skip to content

Commit 4d17237

Browse files
committed
fix: Compilation broken on macOS
1 parent 37ff678 commit 4d17237

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/profiler.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ impl JfrFile {
3232

3333
#[cfg(not(target_os = "linux"))]
3434
fn new() -> Result<Self, io::Error> {
35-
io::Error::new(
36-
io::ErrorKind::Other,
35+
Err(io::Error::other(
3736
"async-profiler is only supported on Linux",
38-
)
37+
))
3938
}
4039

4140
fn swap(&mut self) {

0 commit comments

Comments
 (0)