Skip to content

Commit

Permalink
Revert "Add Colorable supertrait"
Browse files Browse the repository at this point in the history
This reverts commit cbd4c4b.

Since the trait needs to be in scope anyway it does not help with
reducing the number of necessary imports; the only thing that would help
is merging the `Background` and `Foreground` traits into a single one.
  • Loading branch information
hanmertens committed Aug 16, 2020
1 parent 58a20f2 commit 80647e2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,4 @@ mod foreground;

pub use background::*;
pub use colors::*;
pub use foreground::*;

pub trait Colorable: Background + Foreground {}

impl<T: Background + Foreground> Colorable for T {}
pub use foreground::*;

0 comments on commit 80647e2

Please sign in to comment.