From 468c0286f9ed4d3403266e3f26a76bceed1d1306 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Fri, 8 Apr 2022 18:46:40 +0200 Subject: [PATCH] Use dyn instead of generic for media_fn Otherwise, would have to pass None with type annotation in the default case. --- rslib/src/import_export/package/apkg/export.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/import_export/package/apkg/export.rs b/rslib/src/import_export/package/apkg/export.rs index 40aa78c96..079837b0b 100644 --- a/rslib/src/import_export/package/apkg/export.rs +++ b/rslib/src/import_export/package/apkg/export.rs @@ -29,7 +29,7 @@ impl Collection { search: impl TryIntoSearch, with_scheduling: bool, with_media: bool, - media_fn: Option) -> MediaIter>, + media_fn: Option) -> MediaIter>>, progress_fn: impl FnMut(usize), ) -> Result<()> { let temp_apkg = tempfile_in_parent_of(out_path.as_ref())?;