chore: Fix clippy lints
This commit is contained in:
parent
ad1916e2ea
commit
2e304e2e8a
1 changed files with 1 additions and 1 deletions
|
|
@ -482,7 +482,7 @@ pub fn gen_random_ansi_color() -> u8 {
|
|||
const LOW_END: u8 = 21; // Blue1 #0000ff rgb(0,0,255) hsl(240,100%,50%)
|
||||
const HIGH_END: u8 = 230; // Cornsilk1 #ffffd7 rgb(255,255,215) hsl(60,100%,92%)
|
||||
|
||||
rand::thread_rng().gen_range(LOW_END..=HIGH_END)
|
||||
rand::rng().random_range(LOW_END..=HIGH_END)
|
||||
}
|
||||
|
||||
pub fn color_str<T>(text: T, ansi_color: u8) -> String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue