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<()> { fn list(&mut self) -> io:: Result<()> {
self.login()?; self.login()?;
let st = self.storage.as_ref().unwrap(); let ids = self.storage.as_ref().unwrap().ids();
for id in st.ids() { if ids.len() == 0 {
println!("{}", id); println!("No items");
} else {
for id in ids {
println!("{}", id);
}
} }
Ok(()) Ok(())
} }

Loading…
Cancel
Save