From 7996f835d0795fe70342752444cd7ecd64538072 Mon Sep 17 00:00:00 2001 From: zroug <37004975+zroug@users.noreply.github.com> Date: Sat, 2 Mar 2024 13:27:22 +0100 Subject: [PATCH] fix: remove unnecessary trait bound `PartialEq` from `create_owning_memo` (#2394) --- 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 760a38d27..d625849f4 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) }