From 3f3ab42f5c1529ab0ac660e00856c849e181db34 Mon Sep 17 00:00:00 2001 From: Frances Wingerter Date: Wed, 19 Feb 2025 01:42:11 +0000 Subject: [PATCH] closures/exercise.rs: drop trait bounds from struct definition This is more idiomatic than what we had before. We keep the trait bounds for the inherent impl, because the new method can use them to guide inference of unannotated closure arguments. --- src/closures/exercise.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/closures/exercise.rs b/src/closures/exercise.rs index e6951257b128..01c71f801891 100644 --- a/src/closures/exercise.rs +++ b/src/closures/exercise.rs @@ -30,9 +30,6 @@ impl Logger for StderrLogger { /// Only log messages matching a filtering predicate. struct Filter -where - L: Logger, - P: Fn(u8, &str) -> bool, { inner: L, predicate: P,