Add macros for logging.

This commit is contained in:
2026-02-22 10:09:53 -05:00
parent e5f77ef51c
commit 779872b2f6
21 changed files with 246 additions and 79 deletions

View File

@@ -41,7 +41,7 @@ impl Colors {
let hex_full = match hex.len() {
3 => hex
.chars()
.map(|c| std::iter::repeat(c).take(2).collect::<String>())
.map(|c| std::iter::repeat_n(c, 2).collect::<String>())
.collect::<String>(),
6 => hex.to_string(),
_ => panic!("Invalid hex color length: {hex:?}"),