Skip to content

Commit d189f74

Browse files
committed
fix fig_input_method
1 parent 859fd40 commit d189f74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/fig_input_method/src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ mod imk;
33
#[cfg(target_os = "macos")]
44
mod macos;
55

6+
#[cfg(not(target_os = "macos"))]
7+
use std::process::ExitCode;
8+
69
#[cfg(target_os = "macos")]
710
pub use macos::main;
811

912
#[cfg(not(target_os = "macos"))]
10-
fn main() -> std::process::ExitCode {
13+
fn main() -> ExitCode {
1114
println!("Fig input method is only supported on macOS");
12-
std::process::ExitCode
15+
ExitCode::FAILURE
1316
}

0 commit comments

Comments
 (0)