mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::type_complexity)]
|
type GetChecksumFn<'a> = dyn FnMut(&str) -> Result<Option<Sha1Hash>> + 'a;
|
||||||
struct MediaComparer<'a>(Option<Box<dyn FnMut(&str) -> Result<Option<Sha1Hash>> + 'a>>);
|
|
||||||
|
struct MediaComparer<'a>(Option<Box<GetChecksumFn<'a>>>);
|
||||||
|
|
||||||
impl<'a> MediaComparer<'a> {
|
impl<'a> MediaComparer<'a> {
|
||||||
fn new(
|
fn new(
|
||||||
|
|
Loading…
Reference in a new issue