1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

clippy fixes

This commit is contained in:
Emil Ernerfeldt
2022-05-16 16:44:58 +02:00
parent 934fcd7e99
commit 810b609a80
3 changed files with 13 additions and 10 deletions

View File

@@ -186,9 +186,12 @@ impl Color32 {
}
}
// ----------------------------------------------------------------------------
/// Construct a [`Color32`] from a hex RGB or RGBA string.
///
/// ```ignore
/// ```
/// # use epaint::{hex_color, Color32};
/// assert_eq!(hex_color!("#202122"), Color32::from_rgb(0x20, 0x21, 0x22));
/// assert_eq!(hex_color!("#abcdef12"), Color32::from_rgba_unmultiplied(0xab, 0xcd, 0xef, 0x12));
/// ```