Replace deprecated elements (#10991)
# Objective - Replace deprecated elements. ## Solution - Replace 'u8::max_value()' with 'u8::MAX'.
This commit is contained in:
parent
ca1874e6c6
commit
d3e96abadc
@ -235,8 +235,8 @@ mod test {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn srgb_linear_full_roundtrip() {
|
fn srgb_linear_full_roundtrip() {
|
||||||
let u8max: f32 = u8::max_value() as f32;
|
let u8max: f32 = u8::MAX as f32;
|
||||||
for color in 0..u8::max_value() {
|
for color in 0..u8::MAX {
|
||||||
let color01 = color as f32 / u8max;
|
let color01 = color as f32 / u8max;
|
||||||
let color_roundtrip = color01
|
let color_roundtrip = color01
|
||||||
.linear_to_nonlinear_srgb()
|
.linear_to_nonlinear_srgb()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user