re-export color::Color
This commit is contained in:
parent
366b57d3e7
commit
c0da03ad72
@ -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"
|
||||
|
@ -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
|
||||
|
@ -44,4 +44,4 @@ impl fmt::Display for Color {
|
||||
Color::Unset => Ok(()),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user