diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-02-22 10:58:19 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-02-22 10:58:36 +0100 |
commit | 38fecb6e4206e7f9d55aaa11eec4635275de1f9f (patch) | |
tree | 173ac6e3ec7c2400ee743cfc673ba9bdfe3bf8f9 | |
parent | b23b9365552bd636563359efc4548af59ddb25ef (diff) |
TMP
-rw-r--r-- | bin/domain/imag-mail/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/domain/imag-mail/src/lib.rs b/bin/domain/imag-mail/src/lib.rs index 487f5387..a9d56506 100644 --- a/bin/domain/imag-mail/src/lib.rs +++ b/bin/domain/imag-mail/src/lib.rs @@ -223,15 +223,15 @@ fn list(rt: &Runtime) -> Result<()> { Box::new(iter) as Box<dyn Iterator<Item = Result<String>>> }; - let ids = iter.collect::<Result<Vec<String>>>()?; - drop(ids); - let ids = vec![String::from("20160807104056.GS1882@yuu")]; trace!("Printing mailtrees now!"); // we have to collect here, so that all FLEs are drop()ed - ids.into_iter() + iter.collect::<Result<Vec<String>>>()? + .into_iter() .map(|id: String| mailstore.get_mailtree(&id)) - .and_then_ok(|mt| print_traverse(&mailstore, mt, i, conn, list_format, rt, out)) + .collect::<Result<Vec<_>>>()? + .into_iter() + .map(|mt| print_traverse(&mailstore, mt, i, conn, list_format, rt, out)) .collect::<Result<Vec<_>>>() .map(|_| ()) } |