From: Matthieu Pignolet Date: Wed, 6 Nov 2024 12:12:26 +0000 (+0400) Subject: Update inference.rs X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bb027f19a6fc68028f7d8fcf25ec6610afce9990;p=matthieu%2Fgru.git Update inference.rs --- diff --git a/autofeur_db/src/inference.rs b/autofeur_db/src/inference.rs index 87574af..b8f2f87 100644 --- a/autofeur_db/src/inference.rs +++ b/autofeur_db/src/inference.rs @@ -50,8 +50,9 @@ impl Save<'_> { found = Some(sub); break; } else { - found = Some(sub); - break; + if found.is_none() { + found = Some(sub); + } println!("did not match a={}, b={}", inference, completion) } }