diff --git a/src/pickledb.rs b/src/pickledb.rs index 68f4a47..d8ed3d0 100644 --- a/src/pickledb.rs +++ b/src/pickledb.rs @@ -550,14 +550,8 @@ impl PickleDb { /// pub fn get_all(&self) -> Vec { [ - self.map - .iter() - .map(|(key, _)| key.clone()) - .collect::>(), - self.list_map - .iter() - .map(|(key, _)| key.clone()) - .collect::>(), + self.map.keys().cloned().collect::>(), + self.list_map.keys().cloned().collect::>(), ] .concat() }