Make with take a Copy prefix
Use the `with!` macro otherwise!
This commit is contained in:
parent
d2d93d0916
commit
080db34849
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue