From 1a3cc8601c78b2dedd4fce4345788b2828157df5 Mon Sep 17 00:00:00 2001 From: Erik Williams Date: Tue, 24 May 2022 10:43:25 -0700 Subject: [PATCH] Removed bounds on Append, PluckTail, Prepend, and Pluck. --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index af71820..8510c27 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,7 @@ /// Helper trait to allow Appending of tuples pub trait Append { - type Output : PluckTail; + type Output; /// Append T onto the end of the tuple returning /// a new tuple with the existing elements and T fn append(self, other: T) -> Self::Output; @@ -12,7 +12,7 @@ pub trait Append { /// /// This is the inverse of [`Append`] pub trait PluckTail { - type Head : Append; + type Head; type Tail; /// Split the tuple into the tail (`Tail`) and the rest part (`Head`) fn pluck_tail(self) -> (Self::Head, Self::Tail); @@ -20,7 +20,7 @@ pub trait PluckTail { /// Helper trait to allow Perpending of tuples pub trait Prepend { - type Output : Pluck; + type Output; /// Append T onto the start of the tuple returning /// a new tuple with all the elements from shifted /// over one row and T in the first slot @@ -32,7 +32,7 @@ pub trait Prepend { /// This is the inverse of [`Prepend`] pub trait Pluck { type Head; - type Tail : Prepend; + type Tail; /// Split the tuple into the head (`Head`) and the rest part (`Tail`) fn pluck(self) -> (Self::Head, Self::Tail); }