@@ -110,7 +110,7 @@ impl Color {
110110 }
111111
112112 #[ inline]
113- pub fn to_html ( & self , with_alpha : bool ) -> GodotString {
113+ pub fn to_html ( self , with_alpha : bool ) -> GodotString {
114114 GodotString :: from_sys ( unsafe { ( get_api ( ) . godot_color_to_html ) ( self . sys ( ) , with_alpha) } )
115115 }
116116
@@ -122,7 +122,7 @@ impl Color {
122122 /// # Example
123123 /// `0x00FF7FFF` would be the equivalent to `Color::from_rgba(1.0, 0.5, 1.0, 0.0)`
124124 #[ inline]
125- pub fn to_abgr32 ( & self ) -> u32 {
125+ pub fn to_abgr32 ( self ) -> u32 {
126126 ( ( self . a * 255.0 ) as u32 ) << 24
127127 | ( ( self . b * 255.0 ) as u32 ) << 16
128128 | ( ( self . g * 255.0 ) as u32 ) << 8
@@ -137,7 +137,7 @@ impl Color {
137137 /// # Example
138138 /// `0x0000FFFF7FFFFFFF` would be the equivalent to `Color::from_rgba(0.0, 1.0, 0.5, 1.0)`
139139 #[ inline]
140- pub fn to_abgr64 ( & self ) -> u64 {
140+ pub fn to_abgr64 ( self ) -> u64 {
141141 ( ( self . a * 65535.0 ) as u64 ) << 48
142142 | ( ( self . b * 65535.0 ) as u64 ) << 32
143143 | ( ( self . g * 65535.0 ) as u64 ) << 16
@@ -151,7 +151,7 @@ impl Color {
151151 /// On little endian machines this is stored in the order BGRA byte order
152152 /// `0x0000FFFF7FFFFFFF` would be the equivalent to `Color::from_rgba(1.0, 0.5, 1.0, 0.0)`
153153 #[ inline]
154- pub fn to_argb32 ( & self ) -> u32 {
154+ pub fn to_argb32 ( self ) -> u32 {
155155 ( ( self . a * 255.0 ) as u32 ) << 24
156156 | ( ( self . r * 255.0 ) as u32 ) << 16
157157 | ( ( self . g * 255.0 ) as u32 ) << 8
@@ -166,7 +166,7 @@ impl Color {
166166 /// # Example
167167 /// `0x0000FFFF7FFFFFFF` would be the equivalent to `Color::from_rgba(1.0, 0.5, 1.0, 0.0)`
168168 #[ inline]
169- pub fn to_argb64 ( & self ) -> u64 {
169+ pub fn to_argb64 ( self ) -> u64 {
170170 ( ( self . a * 65535.0 ) as u64 ) << 48
171171 | ( ( self . r * 65535.0 ) as u64 ) << 32
172172 | ( ( self . g * 65535.0 ) as u64 ) << 16
@@ -181,7 +181,7 @@ impl Color {
181181 /// # Example
182182 /// `0x00FF7FFF` would be the equivalent to `Color::from_rgba(0.0, 1.0, 0.5, 1.0)`
183183 #[ inline]
184- pub fn to_rgba32 ( & self ) -> u32 {
184+ pub fn to_rgba32 ( self ) -> u32 {
185185 ( ( self . r * 255.0 ) as u32 ) << 24
186186 | ( ( self . g * 255.0 ) as u32 ) << 16
187187 | ( ( self . b * 255.0 ) as u32 ) << 8
@@ -196,7 +196,7 @@ impl Color {
196196 /// # Example
197197 /// `0x0000FFFF7FFFFFFF` would be the equivalent to `Color::from_rgba(0.0, 1.0, 0.5, 1.0)`
198198 #[ inline]
199- pub fn to_rgba64 ( & self ) -> u64 {
199+ pub fn to_rgba64 ( self ) -> u64 {
200200 ( ( self . r * 65535.0 ) as u64 ) << 48
201201 | ( ( self . g * 65535.0 ) as u64 ) << 32
202202 | ( ( self . b * 65535.0 ) as u64 ) << 16
0 commit comments