Skip to content

Commit 08a5ef5

Browse files
committed
cargo fmt...
1 parent aa3c0c8 commit 08a5ef5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • crates/processing_node/src

‎crates/processing_node/src/lib.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ fn linear_to_floats(colors: &[LinearRgba]) -> Float32Array {
7676

7777
fn floats_to_linear(pixels: &[f32], space: u8) -> Vec<LinearRgba> {
7878
pixels
79-
.as_chunks::<4>().0.iter()
79+
.as_chunks::<4>()
80+
.0
81+
.iter()
8082
.map(|p| {
8183
Color {
8284
c1: p[0],
@@ -1074,7 +1076,9 @@ pub fn js_clear_text_features(graphics_id: BigInt) -> Result<()> {
10741076
#[napi(js_name = "textGlyphColors")]
10751077
pub fn js_text_glyph_colors(graphics_id: BigInt, colors: Float32Array) -> Result<()> {
10761078
let colors = colors
1077-
.as_chunks::<4>().0.iter()
1079+
.as_chunks::<4>()
1080+
.0
1081+
.iter()
10781082
.map(|c| bevy::color::Color::srgba(c[0], c[1], c[2], c[3]))
10791083
.collect();
10801084
check(graphics_text_glyph_colors(ent(graphics_id), colors))

0 commit comments

Comments
 (0)