mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
clippy fixes
This commit is contained in:
@@ -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));
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user