Fix clippy issue

This commit is contained in:
Felix Krull 2019-10-31 13:30:30 +01:00 committed by Colin Walters
parent 4bdb7b8760
commit 75ab3f50cd
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ impl RepoCheckoutFilter {
/// convenience. /// convenience.
pub fn new<F>(closure: F) -> Option<RepoCheckoutFilter> pub fn new<F>(closure: F) -> Option<RepoCheckoutFilter>
where where
F: Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult, F: (Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult) + 'static,
F: 'static,
{ {
Some(RepoCheckoutFilter(Box::new(closure))) Some(RepoCheckoutFilter(Box::new(closure)))
} }