diff options
| author | Teddy Wing | 2021-06-13 15:20:21 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2021-06-13 15:20:21 +0200 | 
| commit | 321c1725d4866b3177753942abd3073f2d0041a3 (patch) | |
| tree | 271f75de5dce0c9eb24d8387888b24a291da9eaa /src | |
| parent | bdb52392162500ed1b55e68527668c3b41386c2a (diff) | |
| download | reflectub-321c1725d4866b3177753942abd3073f2d0041a3.tar.bz2 | |
MultiError: Remove impl `Iterator` tests
Remove the `Iterator` test implementations that didn't work out.
Diffstat (limited to 'src')
| -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 -//     } -// } | 
