Skip to content

Commit

Permalink
Make with take a Copy prefix
Browse files Browse the repository at this point in the history
Use the `with!` macro otherwise!
  • Loading branch information
hecrj committed Feb 11, 2025
1 parent d2d93d0 commit 080db34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ pub fn with<T, R, O>(
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
Expand Down

0 comments on commit 080db34

Please sign in to comment.