1 changed files with 7 additions and 2 deletions
@ -1,8 +1,13 @@
@@ -1,8 +1,13 @@
|
||||
use rusty_keys::main_res; |
||||
|
||||
#[cfg(any(target_os = "windows", target_os = "linux"))] |
||||
fn main() { |
||||
let ret = main_res(); |
||||
let ret = rusty_keys::main_res(); |
||||
if let Err(e) = ret { |
||||
println!("fatal error: {}", e); |
||||
} |
||||
} |
||||
|
||||
#[cfg(not(any(target_os = "windows", target_os = "linux")))] |
||||
fn main() { |
||||
panic!("sorry no main impl for this platform"); |
||||
} |
||||
|
Loading…
Reference in new issue