From 080db348495f6e92f13391d3b222c5a2769b5fc1 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 11 Feb 2025 03:48:49 +0100 Subject: Make `with` take a `Copy` prefix Use the `with!` macro otherwise! --- core/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src') diff --git a/core/src/lib.rs b/core/src/lib.rs index a6d4edc7..a5540787 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -137,9 +137,9 @@ pub fn with( prefix: T, ) -> impl FnMut(R) -> O where - T: Clone, + T: Copy, { - move |result| f(prefix.clone(), result) + move |result| f(prefix, result) } /// Applies the given prefix values to the provided closure in the first -- cgit