all: set rust edition to 2024
This commit is contained in:
parent
02a18f620b
commit
3338909170
515 changed files with 1225 additions and 1187 deletions
|
|
@ -75,7 +75,10 @@ impl Color {
|
|||
if !validate_f32_all([r, g, b, a]) {
|
||||
Self::BLACK
|
||||
} else if r > a || g > a || b > a {
|
||||
log::warn!("f32 values {:?} are not valid valid for a premultiplied color. Using solid black instead.", [r, g, b, a]);
|
||||
log::warn!(
|
||||
"f32 values {:?} are not valid valid for a premultiplied color. Using solid black instead.",
|
||||
[r, g, b, a]
|
||||
);
|
||||
Self::BLACK
|
||||
} else {
|
||||
Self { r, g, b, a }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue