Fixed lint issues & cleaned up some documentation.

This commit is contained in:
shan 2022-10-06 07:28:05 -07:00
parent 1eb8d972ba
commit cb7c467654
24 changed files with 33 additions and 40 deletions

View file

@ -29,4 +29,3 @@ impl Gradient {
linear::Builder::new(start, end)
}
}

View file

@ -68,4 +68,4 @@ impl Builder {
color_stops: stops
}))
}
}
}

View file

@ -256,4 +256,4 @@ pub fn attribute_count_of<'a>(meshes: &'a [Mesh<'a>]) -> (usize, usize) {
.fold((0, 0), |(total_v, total_i), (v, i)| {
(total_v + v, total_i + i)
})
}
}

View file

@ -20,4 +20,4 @@ pub enum Image {
/// The bounds of the image.
bounds: Rectangle,
},
}
}

View file

@ -36,4 +36,4 @@ impl <'a> Into<Style> for Gradient {
}
}
}
}
}

View file

@ -27,4 +27,4 @@ pub struct Quad {
unsafe impl bytemuck::Zeroable for Quad {}
#[allow(unsafe_code)]
unsafe impl bytemuck::Pod for Quad {}
unsafe impl bytemuck::Pod for Quad {}

View file

@ -23,4 +23,4 @@ pub struct Text<'a> {
/// The vertical alignment of the [`Text`].
pub vertical_alignment: alignment::Vertical,
}
}

View file

@ -56,4 +56,4 @@ impl Into<Mat4> for Transformation {
fn into(self) -> Mat4 {
self.0
}
}
}

View file

@ -16,4 +16,4 @@ pub struct Mesh2D {
pub struct Vertex2D {
/// The vertex position in 2D space.
pub position: [f32; 2],
}
}