From f1021f20f2851618439c74ccd963442d057f04ff Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Apr 2021 13:57:46 +0100 Subject: [PATCH] want: Use new arrangements in hidden Signed-off-by: Ian Jackson --- src/hidden.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hidden.rs b/src/hidden.rs index f5ab2e9c..d2b839e8 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -649,11 +649,11 @@ fn recalculate_occultation_general< let occ = occultation(goccults, occid); if_chain!{ if occ.notches.is_empty(); - if let Some(ilk) = want!( Some = ipc.occilk.as_ref() ); + if let Some(ilk) = wants!( ipc.occilk.as_ref() ); let ilk = ilk.borrow(); - if let Some(ilk) = want!( Some = ioccults.ilks.get(ilk) ); + if let Some(ilk) = wants!( ioccults.ilks.get(ilk) ); if let Some(bbox) = want!( Ok = ilk.p_occ.bbox_approx() ); - if let Some(size) = want!( Ok = bbox.br() - bbox.tl() ); + if let Some(size) = want!( Ok = bbox.br() - bbox.tl(), ?(bbox) ); then { occ.ppiece_use_size = size; } }; let notch = occ.notches -- 2.30.2