mirror of
https://github.com/ankitects/anki.git
synced 2025-12-01 17:07:13 -05:00
Use dyn instead of generic for media_fn
Otherwise, would have to pass None with type annotation in the default case.
This commit is contained in:
parent
08791e24fc
commit
468c0286f9
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ impl Collection {
|
||||||
search: impl TryIntoSearch,
|
search: impl TryIntoSearch,
|
||||||
with_scheduling: bool,
|
with_scheduling: bool,
|
||||||
with_media: bool,
|
with_media: bool,
|
||||||
media_fn: Option<impl FnOnce(HashSet<PathBuf>) -> MediaIter>,
|
media_fn: Option<Box<dyn FnOnce(HashSet<PathBuf>) -> MediaIter>>,
|
||||||
progress_fn: impl FnMut(usize),
|
progress_fn: impl FnMut(usize),
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let temp_apkg = tempfile_in_parent_of(out_path.as_ref())?;
|
let temp_apkg = tempfile_in_parent_of(out_path.as_ref())?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue