summaryrefslogtreecommitdiff
path: root/autofeur_db/src/inference.rs
diff options
context:
space:
mode:
Diffstat (limited to 'autofeur_db/src/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)
}
}