From 972cba7c31605928fe4c6149e779b27401da02f3 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 5 Jan 2019 01:09:12 +0100 Subject: [PATCH] Adapt to new libimagstore::iter::Entries API Use Entries::into_storeid_iter() for transforming iterator into right type. Signed-off-by: Matthias Beyer --- lib/entry/libimagentrymarkdown/src/processor.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/entry/libimagentrymarkdown/src/processor.rs b/lib/entry/libimagentrymarkdown/src/processor.rs index cd3a9a6f..94b7c7f8 100644 --- a/lib/entry/libimagentrymarkdown/src/processor.rs +++ b/lib/entry/libimagentrymarkdown/src/processor.rs @@ -232,7 +232,6 @@ mod tests { use super::*; use std::path::PathBuf; - use std::sync::Arc; use libimagstore::store::Store; use libimagentrylink::internal::InternalLinker; @@ -399,7 +398,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().without_store().collect(); + let entries : Vec<_> = entries.unwrap().into_storeid_iter().collect(); assert_eq!(2, entries.len(), "Expected 2 links, got: {:?}", entries); @@ -438,7 +437,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().without_store().collect(); + let entries : Vec<_> = entries.unwrap().into_storeid_iter().collect(); assert_eq!(2, entries.len(), "Expected 2 links, got: {:?}", entries); debug!("{:?}", entries); @@ -471,7 +470,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().without_store().collect(); + let entries : Vec<_> = entries.unwrap().into_storeid_iter().collect(); assert_eq!(3, entries.len(), "Expected 3 links, got: {:?}", entries); debug!("{:?}", entries); @@ -504,7 +503,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().without_store().collect(); + let entries : Vec<_> = entries.unwrap().into_storeid_iter().collect(); assert_eq!(1, entries.len(), "Expected 1 entries, got: {:?}", entries); debug!("{:?}", entries); @@ -532,7 +531,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().without_store().collect(); + let entries : Vec<_> = entries.unwrap().into_storeid_iter().collect(); assert_eq!(1, entries.len(), "Expected 1 entries, got: {:?}", entries); }