diff --git a/crates/notify/src/rules/config.rs b/crates/notify/src/rules/config.rs index 23161cea0..11b684af8 100644 --- a/crates/notify/src/rules/config.rs +++ b/crates/notify/src/rules/config.rs @@ -97,8 +97,8 @@ impl BucketNotificationConfig { } // Expose the RulesMap for the notifier - pub fn get_rules_map(&self) -> RulesMap { - self.rules.clone() + pub fn get_rules_map(&self) -> &RulesMap { + &self.rules } /// Sets the region for the configuration