diff --git a/limitador/src/storage/mod.rs b/limitador/src/storage/mod.rs index 25e97531..11a7cc33 100644 --- a/limitador/src/storage/mod.rs +++ b/limitador/src/storage/mod.rs @@ -83,7 +83,7 @@ impl Storage { pub fn get_limits(&self, namespace: &Namespace) -> HashSet { match self.limits.read().unwrap().get(namespace) { - Some(limits) => limits.iter().cloned().collect(), + Some(limits) => limits.clone(), None => HashSet::new(), } }