Skip to content

Commit

Permalink
fix(init): Clippy warning about unwrap after testing is_err in init_core
Browse files Browse the repository at this point in the history
  • Loading branch information
AMythicDev committed Oct 11, 2023
1 parent 17a456b commit 129ae10
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/core/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,9 @@ pub fn init_core(pager: &Pager, rm: RunMode) -> std::result::Result<(), MinusErr
let r1 = t1.join().unwrap();
let r2 = t2.join().unwrap();

if r1.is_err() {
r1
} else if r2.is_err() {
r2
} else {
Ok(())
}
r1?;
r2?;
Ok(())
})
}

Expand All @@ -229,6 +225,7 @@ fn start_reactor(
) -> Result<(), MinusError> {
let mut out_lock = out.lock();


let mut p = ps.lock();
draw_full(&mut out_lock, &mut p)?;
drop(p);
Expand Down

0 comments on commit 129ae10

Please sign in to comment.