diff --git a/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs b/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs index e1294a54..fc62267e 100644 --- a/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs +++ b/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs @@ -29,8 +29,7 @@ impl RepoCheckoutFilter { /// convenience. pub fn new(closure: F) -> Option where - F: Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult, - F: 'static, + F: (Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult) + 'static, { Some(RepoCheckoutFilter(Box::new(closure))) }