From 3c1a0a51c90a130d8cf28cc3d0d8a674548f7ea8 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 29 Jan 2018 20:42:15 +0100 Subject: [PATCH] Transform iterator to forget Store reference here --- lib/entry/libimagentrymarkdown/src/processor.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/entry/libimagentrymarkdown/src/processor.rs b/lib/entry/libimagentrymarkdown/src/processor.rs index 965635c5..cdc7f3e4 100644 --- a/lib/entry/libimagentrymarkdown/src/processor.rs +++ b/lib/entry/libimagentrymarkdown/src/processor.rs @@ -381,7 +381,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().collect(); + let entries : Vec<_> = entries.unwrap().without_store().collect(); assert_eq!(2, entries.len(), "Expected 2 links, got: {:?}", entries); @@ -420,7 +420,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().collect(); + let entries : Vec<_> = entries.unwrap().without_store().collect(); assert_eq!(2, entries.len(), "Expected 2 links, got: {:?}", entries); println!("{:?}", entries); @@ -453,7 +453,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().collect(); + let entries : Vec<_> = entries.unwrap().without_store().collect(); assert_eq!(3, entries.len(), "Expected 3 links, got: {:?}", entries); println!("{:?}", entries); @@ -486,7 +486,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().collect(); + let entries : Vec<_> = entries.unwrap().without_store().collect(); assert_eq!(1, entries.len(), "Expected 1 entries, got: {:?}", entries); println!("{:?}", entries); @@ -514,7 +514,7 @@ mod tests { let entries = store.entries(); assert!(entries.is_ok()); - let entries : Vec<_> = entries.unwrap().collect(); + let entries : Vec<_> = entries.unwrap().without_store().collect(); assert_eq!(1, entries.len(), "Expected 1 entries, got: {:?}", entries); }