Skip to content

Commit

Permalink
fix fig_input_method
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed Jan 9, 2025
1 parent d79aec5 commit 414855f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/fig_input_method/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ mod imk;
#[cfg(target_os = "macos")]
mod macos;

#[cfg(not(target_os = "macos"))]
use std::process::ExitCode;

#[cfg(target_os = "macos")]
pub use macos::main;

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

0 comments on commit 414855f

Please sign in to comment.