From e9ace17f75e6e0f422d189f10a70c9232de226ce Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 25 Feb 2026 07:32:52 +0800 Subject: Add asset and sheet systems with new dependencies --- utils/src/display.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils') 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) -> String { } // Helper function to apply color to text -fn apply_color(text: &str, color_name: &str) -> String { +fn apply_color(text: impl AsRef, color_name: impl AsRef) -> String { + let text = text.as_ref(); + let color_name = color_name.as_ref(); match color_name { // Normal colors "black" => text.black().to_string(), -- cgit