diff options
author | Oxore <oxore@protonmail.com> | 2019-09-30 23:33:18 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2019-09-30 23:33:18 +0300 |
commit | 0832a0dddad7782b8ac7a06c76d3e58ab2a56864 (patch) | |
tree | aa96f8fb5d6a39fc803e2af2e384f77ef2cbce84 /src/main.rs | |
parent | 615ef873ca3aff557b21658b54a7cb1081404d86 (diff) |
Remove most of unwraps, add Mov instruction
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 0d79c33..17ef6e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,13 @@ fn main() { let asyncpair = Arc::new((Mutex::new(false), Condvar::new())); let asyncpair2 = asyncpair.clone(); - let core = Core::with_ram_from_hex(String::from(":0300000075800008\n:00000001FF\n")); + let core = match Core::with_ram_from_hex(String::from(":0300000075800008\n:00000001FF\n")) { + Ok(value) => value, + Err(err_string) => { + println!("{}", err_string); + return; + }, + }; thread::spawn(move || { let (ref should_stop, ref condvar) = *asyncpair2; |