Browse Source

rm couonter

fix-typo
Coin de Gamma 3 months ago
parent
commit
83dd5c3b83
  1. 6
      src/main.rs

6
src/main.rs

@ -144,13 +144,13 @@ impl MPS {
fn list(&mut self) -> io:: Result<()> { fn list(&mut self) -> io:: Result<()> {
self.login()?; self.login()?;
let ids = self.storage.as_ref().unwrap().ids(); let ids = self.storage.as_ref().unwrap().ids();
let mut counter = 1; // let mut counter = 1;
if ids.len() == 0 { if ids.len() == 0 {
println!("No items"); println!("No items");
} else { } else {
for id in ids { for id in ids {
println!("[{}] {}", counter, id); println!("{}", id);
counter += 1; //counter += 1;
} }
} }
Ok(()) Ok(())

Loading…
Cancel
Save