mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
fix: remove unnecessary trait bound PartialEq
from create_owning_memo
(#2394)
This commit is contained in:
parent
d72b12524e
commit
7996f835d0
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ pub fn create_owning_memo<T>(
|
|||
f: impl Fn(Option<T>) -> (T, bool) + 'static,
|
||||
) -> Memo<T>
|
||||
where
|
||||
T: PartialEq + 'static,
|
||||
T: 'static,
|
||||
{
|
||||
Runtime::current().create_owning_memo(f)
|
||||
}
|
||||
|
@ -352,7 +352,7 @@ impl<T> Memo<T> {
|
|||
#[track_caller]
|
||||
pub fn new_owning(f: impl Fn(Option<T>) -> (T, bool) + 'static) -> Memo<T>
|
||||
where
|
||||
T: PartialEq + 'static,
|
||||
T: 'static,
|
||||
{
|
||||
create_owning_memo(f)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue