Skip to content

Commit 5b65034

Browse files
authored
Merge pull request #105 from async-profiler/fix-compilation-error
Fix compilation error on non-Linux platforms
2 parents a80aa52 + 4d17237 commit 5b65034

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)