Skip to content

Commit

Permalink
Remove unnecessary Default constraint (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtay authored Jul 14, 2024
1 parent fa662f7 commit 14ba0b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/src/storage/persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use super::StorageEntryTrait;
/// Depending on the platform this uses either local storage or a file storage
#[allow(clippy::needless_return)]
pub fn use_persistent<
T: Serialize + DeserializeOwned + Default + Clone + Send + Sync + PartialEq + 'static,
T: Serialize + DeserializeOwned + Clone + Send + Sync + PartialEq + 'static,
>(
key: impl ToString,
init: impl FnOnce() -> T,
Expand All @@ -25,7 +25,7 @@ pub fn use_persistent<
/// Depending on the platform this uses either local storage or a file storage
#[allow(clippy::needless_return)]
pub fn new_persistent<
T: Serialize + DeserializeOwned + Default + Clone + Send + Sync + PartialEq + 'static,
T: Serialize + DeserializeOwned + Clone + Send + Sync + PartialEq + 'static,
>(
key: impl ToString,
init: impl FnOnce() -> T,
Expand All @@ -42,7 +42,7 @@ pub fn new_persistent<
#[allow(clippy::needless_return)]
#[track_caller]
pub fn use_singleton_persistent<
T: Serialize + DeserializeOwned + Default + Clone + Send + Sync + PartialEq + 'static,
T: Serialize + DeserializeOwned + Clone + Send + Sync + PartialEq + 'static,
>(
init: impl FnOnce() -> T,
) -> Signal<T> {
Expand All @@ -56,7 +56,7 @@ pub fn use_singleton_persistent<
#[allow(clippy::needless_return)]
#[track_caller]
pub fn new_singleton_persistent<
T: Serialize + DeserializeOwned + Default + Clone + Send + Sync + PartialEq + 'static,
T: Serialize + DeserializeOwned + Clone + Send + Sync + PartialEq + 'static,
>(
init: impl FnOnce() -> T,
) -> Signal<T> {
Expand Down

0 comments on commit 14ba0b7

Please sign in to comment.