chiark / gitweb /
want: Use a few more times
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 12:43:10 +0000 (13:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 15:16:29 +0000 (16:16 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hidden.rs

index c4c5674115fca426fedc409270a40198d160515a..f5ab2e9cd1506c0510558cd2eb84f475970321bf 100644 (file)
@@ -651,9 +651,9 @@ fn recalculate_occultation_general<
         if occ.notches.is_empty();
         if let Some(ilk) = want!( Some = ipc.occilk.as_ref() );
         let ilk = ilk.borrow();
-        if let Some(ilk) = ioccults.ilks.get(ilk);         // expected, really
-        if let Ok::<_,IE>(bbox) = ilk.p_occ.bbox_approx(); // expected, really
-        if let Ok(size) = bbox.br() - bbox.tl();           // expected, really
+        if let Some(ilk) = want!( Some = 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() );
         then { occ.ppiece_use_size = size; }
       };
       let notch = occ.notches