diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-25 07:32:52 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-25 07:32:52 +0800 |
| commit | e9ace17f75e6e0f422d189f10a70c9232de226ce (patch) | |
| tree | 8bd6e51910c701b32c46b0f73b3a59d60a52fcc6 /utils/src | |
| parent | d7ecd7b986600f6faa6a8c1f5a13a9ba4be4c302 (diff) | |
Add asset and sheet systems with new dependencies
Diffstat (limited to 'utils/src')
| -rw-r--r-- | utils/src/display.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/src/display.rs b/utils/src/display.rs index 50b0858..fc94d90 100644 --- a/utils/src/display.rs +++ b/utils/src/display.rs @@ -330,7 +330,9 @@ pub fn md(text: impl AsRef<str>) -> String { } // Helper function to apply color to text -fn apply_color(text: &str, color_name: &str) -> String { +fn apply_color(text: impl AsRef<str>, color_name: impl AsRef<str>) -> String { + let text = text.as_ref(); + let color_name = color_name.as_ref(); match color_name { // Normal colors "black" => text.black().to_string(), |
