Skip to content

Commit 6d78907

Browse files
committed
Added fmt skip to make vec init more readable
1 parent ee249d5 commit 6d78907

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

examples/3d/custom_mesh.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,25 @@ fn setup(
2020
let right = Vec3::new(1.0, 0.0, 0.0);
2121
let up = Vec3::new(0.0, 1.0, 0.0);
2222

23-
let positions = vec![origin + up, origin + up + right, origin, origin + right];
23+
#[rustfmt::skip]
24+
let positions = vec![
25+
origin + up,
26+
origin + up + right,
27+
origin,
28+
origin + right
29+
];
2430

2531
let origin = Vec2::new(0.0, 0.0);
2632
let right = Vec2::new(1.0, 0.0);
2733
let up = Vec2::new(0.0, 1.0);
2834

29-
let uvs = vec![origin + up, origin + up + right, origin, origin + right];
35+
#[rustfmt::skip]
36+
let uvs = vec![
37+
origin + up,
38+
origin + up + right,
39+
origin,
40+
origin + right
41+
];
3042

3143
let normals = vec![[0.0, 0.0, 1.0]; 4];
3244
let indices = Indices::U32(vec![0, 1, 2, 3, 2, 1]);

0 commit comments

Comments
 (0)