summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Pignolet <matthieu@matthieu-dev.xyz>2024-11-06 16:12:26 +0400
committerGitHub <noreply@github.com>2024-11-06 16:12:26 +0400
commitbb027f19a6fc68028f7d8fcf25ec6610afce9990 (patch)
treefcbeb0b8ed361e397749ac5040d659d41ac5cad5
parent911deb2293444eb42dade90db598139593ee9624 (diff)
Update inference.rs
-rw-r--r--autofeur_db/src/inference.rs5
1 files 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)
}
}