#1258: lands.first() instead of lands[0] (a transition with no endpoints can't panic)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-13 01:20:04 -04:00
parent 3feaf7390f
commit 154bc148e3
1 changed files with 1 additions and 1 deletions

View File

@ -1903,7 +1903,7 @@ fn move_transition_preview(app: &FilmcraftApp, seq: &Sequence, trn: &filmcraft_p
if lands.len() != endpoints.len() {
return None;
}
let (dest, delta) = lands[0];
let &(dest, delta) = lands.first()?;
lands.iter().skip(1).all(|l| *l == (dest, delta)).then(|| (trn.start + delta, trn.end() + delta, dest))
}