update comment

This commit is contained in:
yggverse 2025-08-13 19:47:16 +03:00
parent 31087f7936
commit 4f9714e5bb

View file

@ -28,6 +28,7 @@ impl Ban {
self.index.len() self.index.len()
} }
/// * returns removed `Item` details
pub fn update(&mut self, time: DateTime<Local>) -> Vec<Item> { pub fn update(&mut self, time: DateTime<Local>) -> Vec<Item> {
let mut b = Vec::with_capacity(self.index.len()); let mut b = Vec::with_capacity(self.index.len());
self.index.retain(|i, &mut expires| { self.index.retain(|i, &mut expires| {