Thomas 1 жил өмнө
parent
commit
370115a7ca
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 1 1
      src/cases.rs
  2. 1 1
      src/lib.rs

+ 1 - 1
src/cases.rs

@@ -100,7 +100,7 @@ impl Cases {
 
 impl IntoIterator for Cases {
     type Item = Case;
-    type IntoIter = <Vec<Case> as IntoIterator>::IntoIter; // so that you don't have to write std::vec::IntoIter, which nobody remembers anyway
+    type IntoIter = <Vec<Case> as IntoIterator>::IntoIter;
 
     fn into_iter(self) -> Self::IntoIter {
         self.cases.into_iter()

+ 1 - 1
src/lib.rs

@@ -18,7 +18,7 @@ mod tests {
         LogWrapper::new(multi.clone(), logger).try_init().unwrap();
 
         let cases = cases::Cases::load(multi)?;
-        cases.cases.iter().for_each(|c| println!("{}", c.id));
+        cases.cases.iter().for_each(|c| println!("{}\t{:?}", c.id, c.n_variants()));
 
         Ok(())
     }