diff --git a/crates/ecolor/src/hex_color_macro.rs b/crates/ecolor/src/hex_color_macro.rs index 16f8cc2b8d8c..a0a0729fdd15 100644 --- a/crates/ecolor/src/hex_color_macro.rs +++ b/crates/ecolor/src/hex_color_macro.rs @@ -13,7 +13,7 @@ #[macro_export] macro_rules! hex_color { ($s:literal) => {{ - let array = color_hex::color_from_hex!($s); + let array = $crate::color_hex::color_from_hex!($s); if array.len() == 3 { $crate::Color32::from_rgb(array[0], array[1], array[2]) } else { diff --git a/crates/ecolor/src/lib.rs b/crates/ecolor/src/lib.rs index e3c077edd502..a7072d8e89a3 100644 --- a/crates/ecolor/src/lib.rs +++ b/crates/ecolor/src/lib.rs @@ -24,6 +24,9 @@ pub use hsva::*; #[cfg(feature = "color-hex")] mod hex_color_macro; +#[cfg(feature = "color-hex")] +#[doc(hidden)] +pub use color_hex; mod rgba; pub use rgba::*;