Skip to content

Commit ff076c7

Browse files
committed
Self arg tweak
1 parent fea449e commit ff076c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ impl f_pixel {
113113
}
114114
}
115115

116-
#[allow(clippy::wrong_self_convention)]
117-
pub fn to_rgb(&self, gamma: f64) -> RGBA {
116+
#[inline]
117+
pub(crate) fn to_rgb(self, gamma: f64) -> RGBA {
118118
if self.a < MIN_OPAQUE_A {
119119
return RGBA::new(0, 0, 0, 0);
120120
}

0 commit comments

Comments
 (0)