Browse Source

empty show

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

8
src/main.rs

@ -142,10 +142,14 @@ 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!("No items");
} else {
for id in ids {
println!("{}", id); println!("{}", id);
} }
}
Ok(()) Ok(())
} }

Loading…
Cancel
Save