From 75ab3f50cda28f5c2f5d298523526c87006005be Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Thu, 31 Oct 2019 13:30:30 +0100 Subject: [PATCH] Fix clippy issue --- .../rust/src/repo_checkout_at_options/repo_checkout_filter.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))) }