diff --git a/crates/timeline/src/fcpxml.rs b/crates/timeline/src/fcpxml.rs index 074f35b6c..8a002689e 100644 --- a/crates/timeline/src/fcpxml.rs +++ b/crates/timeline/src/fcpxml.rs @@ -865,10 +865,7 @@ struct Exp<'a, 'r> { building: Vec, } -pub fn export(p: &Project, seq_id: ItemId, opts: &ExportOptions, report: &mut Report) -> Result { - export_with_report_limit(p, seq_id, opts, report, None) -} -/// Write FCPXML with an optional distinct-diagnostic limit. +/// Write FCPXML with an optional distinct-diagnostic limit ([`export`] has none). pub fn export_with_report_limit( p: &Project, seq_id: ItemId, @@ -876,7 +873,7 @@ pub fn export_with_report_limit( report: &mut Report, report_limit: Option, ) -> Result { - let seq = p.sequence(seq_id).ok_or(Error::NoSequence(seq_id))?; + let Some(seq) = p.sequence(seq_id) else { return Err(Error::NoSequence(seq_id)) }; let mut x = Exp { p, opts, @@ -908,6 +905,11 @@ pub fn export_with_report_limit( Ok(out) } +/// Write the sequence `seq_id` as FCPXML; what it cannot carry is in `report`. +pub fn export(p: &Project, seq_id: ItemId, opts: &ExportOptions, report: &mut Report) -> Result { + export_with_report_limit(p, seq_id, opts, report, None) +} + /// One storyline element being written. struct El { start: Tick,