From 5937ac5505e4b2ce78f447636f69e7fbb56ddda7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 Aug 2020 22:46:41 +0100 Subject: [PATCH] Revert "for revert - error_display - can just use {:?}" This reverts commit 75d063d87f67c161ad5fcbf9eb5955dfed0d1611. --- src/lib.rs | 1 - src/utils.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index dc7e63c4..f1d151b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,6 @@ #![feature(proc_macro_hygiene, decl_macro)] #![feature(slice_strip)] -#![feature(error_iter)] #![allow(clippy::redundant_closure_call)] diff --git a/src/utils.rs b/src/utils.rs index 878d5d0a..55117cb8 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -6,9 +6,3 @@ pub trait OrdExt : Ord + Sized { } impl OrdExt for T where T : Ord + Sized { } - -pub fn error_display>(err: &E) { - for (e,i) in err.as_ref().chain().zip(0..) { - eprintln!("error {:2}: {}", i,e); - } -} -- 2.30.2