Skip to content

Commit 5a267d1

Browse files
committed
examples(webgl): run rustfmt
1 parent 0c41c0b commit 5a267d1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/webgl/src/lib.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,17 @@ pub fn draw() {
5757
Some(&vert_array.buffer()),
5858
WebGlRenderingContext::STATIC_DRAW,
5959
);
60-
context.vertex_attrib_pointer_with_i32(0,
61-
3,
62-
WebGlRenderingContext::FLOAT,
63-
false,
64-
0,
65-
0);
60+
context.vertex_attrib_pointer_with_i32(0, 3, WebGlRenderingContext::FLOAT, false, 0, 0);
6661
context.enable_vertex_attrib_array(0);
6762

6863
context.clear_color(0.0, 0.0, 0.0, 1.0);
6964
context.clear(WebGlRenderingContext::COLOR_BUFFER_BIT);
7065

71-
context.draw_arrays(WebGlRenderingContext::TRIANGLES, 0, (vertices.len() / 3) as i32);
66+
context.draw_arrays(
67+
WebGlRenderingContext::TRIANGLES,
68+
0,
69+
(vertices.len() / 3) as i32,
70+
);
7271
}
7372

7473
pub fn compile_shader(

0 commit comments

Comments
 (0)