mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix type complexity lint
This commit is contained in:
parent
aba7b0830c
commit
400fc3b0f6
1 changed files with 3 additions and 2 deletions
|
@ -152,8 +152,9 @@ fn copy_collection(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::type_complexity)]
|
||||
struct MediaComparer<'a>(Option<Box<dyn FnMut(&str) -> Result<Option<Sha1Hash>> + 'a>>);
|
||||
type GetChecksumFn<'a> = dyn FnMut(&str) -> Result<Option<Sha1Hash>> + 'a;
|
||||
|
||||
struct MediaComparer<'a>(Option<Box<GetChecksumFn<'a>>>);
|
||||
|
||||
impl<'a> MediaComparer<'a> {
|
||||
fn new(
|
||||
|
|
Loading…
Reference in a new issue