diff --git a/rslib/src/import_export/package/colpkg/import.rs b/rslib/src/import_export/package/colpkg/import.rs index 35fbc6c41..8adb48636 100644 --- a/rslib/src/import_export/package/colpkg/import.rs +++ b/rslib/src/import_export/package/colpkg/import.rs @@ -152,8 +152,9 @@ fn copy_collection( Ok(()) } -#[allow(clippy::type_complexity)] -struct MediaComparer<'a>(Option Result> + 'a>>); +type GetChecksumFn<'a> = dyn FnMut(&str) -> Result> + 'a; + +struct MediaComparer<'a>(Option>>); impl<'a> MediaComparer<'a> { fn new(