Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crates/catalog/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,11 @@ pub(crate) fn smart_album_holds(id: crate::AlbumId, photo: crate::PhotoId, match
}
}
}
let _forget = Forget(EVALUATING.with_borrow(Vec::is_empty));
let outermost = EVALUATING.with_borrow(Vec::is_empty);
let _forget = Forget(outermost);
let answer = evaluating(id, matches);
if let Some(a) = answer {
// (the outermost answer would be forgotten as this returns: only what a nested question worked out is kept)
if let (Some(a), false) = (answer, outermost) {
ANSWERS.with_borrow_mut(|known| known.insert((id, photo), a));
}
answer.unwrap_or(false)
Expand Down
Loading