Skip to content

Commit 654cd3e

Browse files
committed
feat: v8.2.12
1 parent fa980e8 commit 654cd3e

File tree

16 files changed

+37
-43
lines changed

16 files changed

+37
-43
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "color-output"
3-
version = "8.2.11"
3+
version = "8.2.12"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/color/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
pub(crate) mod r#const;
2-
pub(crate) mod r#enum;
3-
pub(crate) mod r#fn;
4-
pub(crate) mod r#impl;
5-
pub(crate) mod r#struct;
6-
pub(crate) mod r#trait;
1+
mod r#const;
2+
mod r#enum;
3+
mod r#fn;
4+
mod r#impl;
5+
mod r#struct;
6+
mod r#trait;
77

88
#[cfg(test)]
99
mod test;

src/color/test.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
use crate::*;
2+
13
#[test]
24
fn test_color() {
3-
use crate::*;
45
use color::r#const::DEFAULT;
56
let color: Color = Color::Default;
67
let color_str: &String = &color.to_string();
@@ -9,15 +10,13 @@ fn test_color() {
910

1011
#[test]
1112
fn test_color_get_str() {
12-
use crate::*;
1313
let color_str: &str = &Color::Default.get_str(DisplayType::Text);
1414
let res_color_str: &String = &Color::Default.to_string();
1515
assert_eq!(color_str, res_color_str);
1616
}
1717

1818
#[test]
1919
fn test_bg_color() {
20-
use crate::*;
2120
use color::r#const::DEFAULT;
2221
let bg_color: Color = Color::Default;
2322
let bg_color_str: &String = &bg_color.to_string();
@@ -26,15 +25,13 @@ fn test_bg_color() {
2625

2726
#[test]
2827
fn test_bg_color_get_str() {
29-
use crate::*;
3028
let bg_color_str: &str = &Color::Default.get_str(DisplayType::Background);
3129
let ans_bg_color_str: &String = &Color::Default.to_string();
3230
assert_eq!(bg_color_str, ans_bg_color_str);
3331
}
3432

3533
#[test]
3634
fn test_color256_fg_color() {
37-
use crate::*;
3835
use color::r#fn::color256_fg_color;
3936
let color_str: String = color256_fg_color(0x3f3f3f);
4037
let ans_color_str: String = format!("38;5;{}", 237);
@@ -43,7 +40,6 @@ fn test_color256_fg_color() {
4340

4441
#[test]
4542
fn test_color256_bg_color() {
46-
use crate::*;
4743
use color::r#fn::color256_bg_color;
4844
let color_str: String = color256_bg_color(0x000000);
4945
let ans_color_str: String = format!("48;5;{}", 16);
@@ -52,7 +48,6 @@ fn test_color256_bg_color() {
5248

5349
#[test]
5450
fn test_rgb_fg_color() {
55-
use crate::*;
5651
use color::r#fn::rgb_fg_color;
5752
let color_str: String = rgb_fg_color(255, 255, 255);
5853
let ans_color_str: String = format!("38;2;{};{};{}", 255, 255, 255);
@@ -61,7 +56,6 @@ fn test_rgb_fg_color() {
6156

6257
#[test]
6358
fn test_rgb_bg_color() {
64-
use crate::*;
6559
use color::r#fn::rgb_bg_color;
6660
let color_str: String = rgb_bg_color(0, 0, 0);
6761
let ans_color_str: String = format!("48;2;{};{};{}", 0, 0, 0);

src/output/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pub(crate) mod r#fn;
2-
pub(crate) mod r#impl;
3-
pub(crate) mod r#struct;
1+
mod r#fn;
2+
mod r#impl;
3+
mod r#struct;
44

55
#[cfg(test)]
66
mod test;

src/output/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
use crate::*;
2+
13
#[test]
24
fn test_output_struct_function() {
3-
use crate::*;
45
output(Output {
56
text: "test_output_struct",
67
color: ColorType::Use(Color::Default),
@@ -12,7 +13,6 @@ fn test_output_struct_function() {
1213

1314
#[test]
1415
fn test_output_struct_output_method() {
15-
use crate::*;
1616
Output {
1717
text: "test_output_struct_output",
1818
color: ColorType::Use(Color::Default),

src/output_builder/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pub(crate) mod r#impl;
2-
pub(crate) mod r#struct;
1+
mod r#impl;
2+
mod r#struct;
33

44
#[cfg(test)]
55
mod test;

src/output_builder/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
use crate::*;
2+
13
#[test]
24
fn test_output_builder_new_from() {
3-
use crate::*;
45
output(
56
OutputBuilder::new()
67
.text("test_output_builder")
@@ -23,7 +24,6 @@ fn test_output_builder_new_from() {
2324

2425
#[test]
2526
fn test_output_builder() {
26-
use crate::*;
2727
OutputBuilder::new()
2828
.text("test_output_builder_output")
2929
.bg_color(ColorType::Color256(0xffffff))

src/output_list/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pub(crate) mod r#fn;
2-
pub(crate) mod r#impl;
3-
pub(crate) mod r#struct;
1+
mod r#fn;
2+
mod r#impl;
3+
mod r#struct;
44

55
#[cfg(test)]
66
mod test;

src/output_list/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
use crate::*;
2+
13
#[test]
24
fn test_output_list_struct() {
3-
use crate::*;
45
OutputList(vec![
56
Output {
67
text: "test_output_list_struct_1",

src/output_list_builder/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pub(crate) mod r#impl;
2-
pub(crate) mod r#struct;
1+
mod r#impl;
2+
mod r#struct;
33

44
#[cfg(test)]
55
mod test;

0 commit comments

Comments
 (0)