diff options
| author | 2025-02-11 03:48:49 +0100 | |
|---|---|---|
| committer | 2025-02-11 03:48:49 +0100 | |
| commit | 080db348495f6e92f13391d3b222c5a2769b5fc1 (patch) | |
| tree | 94eedcbd5850a045f50e3efca6f8fc772f7e8bf5 /core | |
| parent | d2d93d09166a013924deda9f03e92887651cdbf7 (diff) | |
| download | iced-080db348495f6e92f13391d3b222c5a2769b5fc1.tar.gz iced-080db348495f6e92f13391d3b222c5a2769b5fc1.tar.bz2 iced-080db348495f6e92f13391d3b222c5a2769b5fc1.zip | |
Make `with` take a `Copy` prefix
Use the `with!` macro otherwise!
Diffstat (limited to '')
| -rw-r--r-- | core/src/lib.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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<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 | 
