From 06fb5a83d588902b4a030b79fcff18f2c30cefdb Mon Sep 17 00:00:00 2001 From: zroug <37004975+zroug@users.noreply.github.com> Date: Fri, 1 Mar 2024 21:07:20 +0100 Subject: [PATCH] Unnecessary trait bound `PartialEq` removed from `create_owning_memo` --- leptos_reactive/src/memo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leptos_reactive/src/memo.rs b/leptos_reactive/src/memo.rs index 760a38d27c..d625849f49 100644 --- a/leptos_reactive/src/memo.rs +++ b/leptos_reactive/src/memo.rs @@ -165,7 +165,7 @@ pub fn create_owning_memo( f: impl Fn(Option) -> (T, bool) + 'static, ) -> Memo where - T: PartialEq + 'static, + T: 'static, { Runtime::current().create_owning_memo(f) } @@ -352,7 +352,7 @@ impl Memo { #[track_caller] pub fn new_owning(f: impl Fn(Option) -> (T, bool) + 'static) -> Memo where - T: PartialEq + 'static, + T: 'static, { create_owning_memo(f) }