File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,19 +18,19 @@ impl LinearRgb {
1818
1919 /// Get the red component.
2020 #[ must_use]
21- pub const fn red ( & self ) -> f32 {
21+ pub const fn red ( self ) -> f32 {
2222 self . red
2323 }
2424
2525 /// Get the green component.
2626 #[ must_use]
27- pub const fn green ( & self ) -> f32 {
27+ pub const fn green ( self ) -> f32 {
2828 self . green
2929 }
3030
3131 /// Get the blue component.
3232 #[ must_use]
33- pub const fn blue ( & self ) -> f32 {
33+ pub const fn blue ( self ) -> f32 {
3434 self . blue
3535 }
3636}
Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ impl Rgb {
1616
1717 /// Get the red component.
1818 #[ must_use]
19- pub const fn red ( & self ) -> u8 {
19+ pub const fn red ( self ) -> u8 {
2020 self . red
2121 }
2222
2323 /// Get the green component.
2424 #[ must_use]
25- pub const fn green ( & self ) -> u8 {
25+ pub const fn green ( self ) -> u8 {
2626 self . green
2727 }
2828
2929 /// Get the blue component.
3030 #[ must_use]
31- pub const fn blue ( & self ) -> u8 {
31+ pub const fn blue ( self ) -> u8 {
3232 self . blue
3333 }
3434}
Original file line number Diff line number Diff line change @@ -25,19 +25,19 @@ impl Xyz {
2525
2626 /// Return the X value.
2727 #[ must_use]
28- pub const fn x ( & self ) -> f32 {
28+ pub const fn x ( self ) -> f32 {
2929 self . x
3030 }
3131
3232 /// Return the Y value.
3333 #[ must_use]
34- pub const fn y ( & self ) -> f32 {
34+ pub const fn y ( self ) -> f32 {
3535 self . y
3636 }
3737
3838 /// Return the Z value.
3939 #[ must_use]
40- pub const fn z ( & self ) -> f32 {
40+ pub const fn z ( self ) -> f32 {
4141 self . z
4242 }
4343}
You can’t perform that action at this time.
0 commit comments