Blob Blame Raw
From 04a666e6cf50b3f4e7d2dfce47d21fb6100b2f89 Mon Sep 17 00:00:00 2001
From: Alexander Regueiro <alexreg@me.com>
Date: Mon, 17 Dec 2018 23:40:47 +0000
Subject: [PATCH] Removed impls that are equivalent other than duplicate
 traits, per issue #5.

---
 src/impls.rs | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/impls.rs b/src/impls.rs
index 6d35686..ec06e94 100644
--- a/src/impls.rs
+++ b/src/impls.rs
@@ -1,5 +1,8 @@
 use Trait;
 
+unsafe impl Trait for Send { }
+unsafe impl Trait for Sync { }
+unsafe impl Trait for Send + Sync { }
 unsafe impl Trait for ::std::any::Any + Send { }
 unsafe impl Trait for ::std::any::Any + Sync { }
 unsafe impl Trait for ::std::any::Any + Send + Sync { }
@@ -63,20 +66,13 @@ unsafe impl Trait for ::std::io::Seek + Send + Sync { }
 unsafe impl Trait for ::std::io::Write + Send { }
 unsafe impl Trait for ::std::io::Write + Sync { }
 unsafe impl Trait for ::std::io::Write + Send + Sync { }
-unsafe impl<T, I> Trait for ::std::iter::IntoIterator<IntoIter=I, Item=T> { }
-unsafe impl<T> Trait for ::std::iter::Iterator<Item=T> + Send { }
-unsafe impl<T> Trait for ::std::iter::Iterator<Item=T> + Sync { }
-unsafe impl<T> Trait for ::std::iter::Iterator<Item=T> + Send + Sync { }
-unsafe impl Trait for ::std::marker::Send + Send { }
-unsafe impl Trait for ::std::marker::Send + Sync { }
-unsafe impl Trait for ::std::marker::Send + Send + Sync { }
-unsafe impl Trait for ::std::marker::Sync + Send { }
-unsafe impl Trait for ::std::marker::Sync + Sync { }
-unsafe impl Trait for ::std::marker::Sync + Send + Sync { }
+unsafe impl<T, I> Trait for ::std::iter::IntoIterator<IntoIter = I, Item = T> { }
+unsafe impl<T> Trait for ::std::iter::Iterator<Item = T> + Send { }
+unsafe impl<T> Trait for ::std::iter::Iterator<Item = T> + Sync { }
+unsafe impl<T> Trait for ::std::iter::Iterator<Item = T> + Send + Sync { }
 unsafe impl Trait for ::std::ops::Drop + Send { }
 unsafe impl Trait for ::std::ops::Drop + Sync { }
 unsafe impl Trait for ::std::ops::Drop + Send + Sync { }
 unsafe impl Trait for ::std::string::ToString + Send { }
 unsafe impl Trait for ::std::string::ToString + Sync { }
 unsafe impl Trait for ::std::string::ToString + Send + Sync { }
-
-- 
2.21.0