Fix clippy issue
This commit is contained in:
parent
4bdb7b8760
commit
75ab3f50cd
|
|
@ -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)))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue