From c0da03ad7256e55f77aa970b1cb00d3e795d344b Mon Sep 17 00:00:00 2001 From: wpbirney Date: Thu, 2 Jun 2022 18:02:04 -0400 Subject: [PATCH] re-export color::Color --- Cargo.toml | 2 +- readme.md | 2 ++ src/color.rs | 2 +- src/lib.rs | 8 ++------ 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b0f4ea1..6060cdb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mirc" -version = "0.1.2" +version = "0.1.3" edition = "2021" authors = ["wpbirney Ok(()), } } -} \ No newline at end of file +} diff --git a/src/lib.rs b/src/lib.rs index fed716b..d2375d0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ pub mod color; -use color::Color; +pub use color::Color; use std::fmt; @@ -33,11 +33,7 @@ macro_rules! constructors_for { impl Paint { pub fn new(fg: Color, bg: Color, content: T) -> Paint { - Paint { - fg, - bg, - content, - } + Paint { fg, bg, content } } constructors_for!(