Fix clippy issue

This commit is contained in:
Felix Krull authored and Colin Walters committed 2022-05-06 12:53:54 -04:00
1 parent 4bdb7b8760
commit 75ab3f50cd
1 file changed
+1 -2
@@ -29,8 +29,7 @@ impl RepoCheckoutFilter {
/// convenience.
pub fn new<F>(closure: F) -> Option<RepoCheckoutFilter>
where
F: Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult,
F: 'static,
F: (Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult) + 'static,
{
Some(RepoCheckoutFilter(Box::new(closure)))
}