re-export color::Color

This commit is contained in:
wpbirney 2022-06-02 18:02:04 -04:00
parent 366b57d3e7
commit c0da03ad72
4 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "mirc"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["wpbirney <wpb@360scada.com"]
description = "Simple mirc color formatting for irc clients"

View File

@ -2,6 +2,8 @@
A simple mirc color code formatter partially inspired by [yansi](https://github.com/SergioBenitez/yansi)
[docs.rs](https://docs.rs/mirc/latest/mirc/index.html)
## Usage
```rust

View File

@ -44,4 +44,4 @@ impl fmt::Display for Color {
Color::Unset => Ok(()),
}
}
}
}

View File

@ -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<T> Paint<T> {
pub fn new(fg: Color, bg: Color, content: T) -> Paint<T> {
Paint {
fg,
bg,
content,
}
Paint { fg, bg, content }
}
constructors_for!(