Browse Source

empty show

fix-typo
Coin de Gamma 3 months ago
parent
commit
d7a6259a7e
  1. 10
      src/main.rs

10
src/main.rs

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

Loading…
Cancel
Save