From bb6f6e9ac8685051eb443cadcaf49e5d4a1f6410 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 10 Nov 2025 10:28:39 -0800 Subject: [PATCH] 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`. --- cosmic-config/src/subscription.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmic-config/src/subscription.rs b/cosmic-config/src/subscription.rs index 32f4884..45e021f 100644 --- a/cosmic-config/src/subscription.rs +++ b/cosmic-config/src/subscription.rs @@ -18,7 +18,7 @@ pub enum ConfigUpdate { #[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,