diff options
-rw-r--r-- | src/main.rs | 8 | ||||
-rw-r--r-- | src/multi_error.rs | 17 |
2 files changed, 0 insertions, 25 deletions
diff --git a/src/main.rs b/src/main.rs index 9117674..b3de5fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,14 +41,6 @@ fn main() { match run() { Ok(_) => (), Err(e) => { - // format!("{}", e) - // .lines() - // .for_each(|l| eprintln!("error: {}", e)); - // eprintln!(); - - // let errors = *e; - // errors.for_each(|e| eprintln!("error: {}", e)); - e .into_iter() .for_each(|e| eprintln!("error: {:#}", e)); diff --git a/src/multi_error.rs b/src/multi_error.rs index d3fdba5..e786c49 100644 --- a/src/multi_error.rs +++ b/src/multi_error.rs @@ -17,7 +17,6 @@ use std::fmt; -// use std::ops::Deref; /// Wraps a list of errors. @@ -52,14 +51,6 @@ impl From<Vec<anyhow::Error>> for MultiError { } } -// impl Iterator for MultiError { -// type Item = anyhow::Error; -// -// fn next(&mut self) -> Option<Self::Item> { -// self.errors.next() -// } -// } - impl IntoIterator for MultiError { type Item = anyhow::Error; type IntoIter = std::vec::IntoIter<Self::Item>; @@ -68,11 +59,3 @@ impl IntoIterator for MultiError { self.errors.into_iter() } } - -// impl Deref for MultiError { -// type Target = [anyhow::Error]; -// -// fn deref(&self) -> &Self::Target { -// &self.errors -// } -// } |