Skip to content

Commit c03d16a

Browse files
committed
Reformat documention comments following fix for rust-lang/rustfmt#3751.
1 parent 444317f commit c03d16a

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

plexus/src/buffer.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ where
449449
/// let cube = Cube::new();
450450
/// let (indices, vertices) = primitive::zip_vertices((
451451
/// cube.polygons::<Position<E3>>(),
452-
/// cube.polygons::<Normal<E3>>().map_vertices(|normal| normal.into_inner()),
452+
/// cube.polygons::<Normal<E3>>()
453+
/// .map_vertices(|normal| normal.into_inner()),
453454
/// ))
454455
/// .triangulate()
455456
/// .index_vertices::<Flat3, _>(HashIndexer::default());
@@ -689,7 +690,9 @@ where
689690
/// # fn main() {
690691
/// let cube = Cube::new();
691692
/// let buffer = MeshBuffer3::<usize, _>::from_raw_buffers(
692-
/// cube.indexing_polygons::<Position>().triangulate().vertices(),
693+
/// cube.indexing_polygons::<Position>()
694+
/// .triangulate()
695+
/// .vertices(),
693696
/// cube.vertices::<Position<Point3<f32>>>(),
694697
/// )
695698
/// .unwrap();

plexus/src/graph/view/face.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@ where
177177
/// .polygons::<Position<Point3<N64>>>()
178178
/// .collect::<MeshGraph<Point3<f64>>>();
179179
/// let key = graph.faces().nth(0).unwrap().key();
180-
/// let face = graph.face_mut(key).unwrap().extrude(1.0).unwrap().into_ref();
180+
/// let face = graph
181+
/// .face_mut(key)
182+
/// .unwrap()
183+
/// .extrude(1.0)
184+
/// .unwrap()
185+
/// .into_ref();
181186
///
182187
/// // This would not be possible without conversion into an immutable view.
183188
/// let _ = face.into_arc();

plexus/src/primitive/generate.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ pub trait Generator: Sized {
197197
///
198198
/// let cube = Cube::new();
199199
///
200-
/// let positions = cube
201-
/// .vertices::<Position<E3>>()
202-
/// .collect::<Vec<_>>();
200+
/// let positions = cube.vertices::<Position<E3>>().collect::<Vec<_>>();
203201
/// let indices = cube
204202
/// .indexing_polygons::<Position>()
205203
/// .triangulate()

plexus/src/primitive/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub trait Topological:
122122
/// Trigon::from([
123123
/// E2::from_xy(-1.0, 0.0),
124124
/// E2::from_xy(0.0, 1.0),
125-
/// E2::from_xy(1.0, 0.0)
125+
/// E2::from_xy(1.0, 0.0),
126126
/// ]),
127127
/// 1.0,
128128
/// );
@@ -890,8 +890,8 @@ impl<T> Topological for Polygon<T> {
890890
/// cube.polygons::<Normal<E3>>(),
891891
/// cube.polygons::<Plane>(),
892892
/// ))
893-
/// .triangulate()
894-
/// .collect::<Vec<_>>();
893+
/// .triangulate()
894+
/// .collect::<Vec<_>>();
895895
/// # }
896896
/// ```
897897
pub fn zip_vertices<T, U>(

0 commit comments

Comments
 (0)