From bb027f19a6fc68028f7d8fcf25ec6610afce9990 Mon Sep 17 00:00:00 2001 From: Matthieu Pignolet Date: Wed, 6 Nov 2024 16:12:26 +0400 Subject: [PATCH] Update inference.rs --- autofeur_db/src/inference.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) } } -- 2.39.5