improv(cosmic-config): Remove unneeded trait bounds for subscriptions
It looks like these functions where previously implemented in a different way that required these traits, but now it uses `Subscription::run_with_id`, the `id` only needs to be `Hash + 'static`.
This commit is contained in:
parent
6439507aa2
commit
bb6f6e9ac8
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ pub enum ConfigUpdate<T> {
|
|||
|
||||
#[cold]
|
||||
pub fn config_subscription<
|
||||
I: 'static + Copy + Send + Sync + Hash,
|
||||
I: 'static + Hash,
|
||||
T: 'static + Send + Sync + PartialEq + Clone + CosmicConfigEntry,
|
||||
>(
|
||||
id: I,
|
||||
|
|
@ -30,7 +30,7 @@ pub fn config_subscription<
|
|||
|
||||
#[cold]
|
||||
pub fn config_state_subscription<
|
||||
I: 'static + Copy + Send + Sync + Hash,
|
||||
I: 'static + Hash,
|
||||
T: 'static + Send + Sync + PartialEq + Clone + CosmicConfigEntry,
|
||||
>(
|
||||
id: I,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue