Browse Source

rm debug print in remove

item-number-refactoring
Coin de Gamma 3 months ago
parent
commit
3d8b5fdfdd
  1. 6
      src/storage.rs

6
src/storage.rs

@ -194,14 +194,8 @@ impl Storage {
} }
pub fn remove(&mut self, id: &String) { pub fn remove(&mut self, id: &String) {
for it in self.items.iter() {
println!("x: {}", it.id);
}
let item = Item::from_empty(id.clone()); let item = Item::from_empty(id.clone());
self.items.remove(&item); self.items.remove(&item);
for it in self.items.iter() {
println!("y: {}", it.id);
}
} }
pub fn dump(&self) -> io::Result<()> { pub fn dump(&self) -> io::Result<()> {

Loading…
Cancel
Save