chiark / gitweb /
hidden: When one of the occultations is Visible, show it
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Mar 2021 19:23:43 +0000 (19:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Mar 2021 22:42:43 +0000 (22:42 +0000)
We don't defer to the caller's log_visible here.  (That is actually
misnamed.)  The caller may have generated that from the old
occultation state.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hidden.rs

index 3154bf8128e3c305a4667b67ff8364be09c33ff3..beb01b47c65b7e7ba80b006dd5698da241feca9c 100644 (file)
@@ -504,9 +504,7 @@ fn recalculate_occultation_general<
       );
 
     let log = match most_obscure.map_displaced(|_|((),())).pri_occulted() {
-      Some(PriOG::Visible(_y)) => {
-        log_visible
-      }
+      Some(prioc@ PriOG::Visible(_)) |
       Some(prioc@ PriOG::Occulted) |
       Some(prioc@ PriOG::Displaced(..)) => {
         let show = prioc.describe(ioccults, gpc, ipc);