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:
Ian Douglas Scott 2025-11-10 10:28:39 -08:00 committed by Ian Douglas Scott
parent 6439507aa2
commit bb6f6e9ac8

View file

@ -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,