From cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e Mon Sep 17 00:00:00 2001 From: shan Date: Thu, 6 Oct 2022 07:28:05 -0700 Subject: Fixed lint issues & cleaned up some documentation. --- graphics/src/gradient.rs | 1 - graphics/src/gradient/linear.rs | 2 +- graphics/src/layer.rs | 2 +- graphics/src/layer/image.rs | 2 +- graphics/src/layer/mesh.rs | 2 +- graphics/src/layer/quad.rs | 2 +- graphics/src/layer/text.rs | 2 +- graphics/src/transformation.rs | 2 +- graphics/src/triangle.rs | 2 +- 9 files changed, 8 insertions(+), 9 deletions(-) (limited to 'graphics/src') diff --git a/graphics/src/gradient.rs b/graphics/src/gradient.rs index 33453c67..13600fb9 100644 --- a/graphics/src/gradient.rs +++ b/graphics/src/gradient.rs @@ -29,4 +29,3 @@ impl Gradient { linear::Builder::new(start, end) } } - diff --git a/graphics/src/gradient/linear.rs b/graphics/src/gradient/linear.rs index 00f94adc..1ffe7cf9 100644 --- a/graphics/src/gradient/linear.rs +++ b/graphics/src/gradient/linear.rs @@ -68,4 +68,4 @@ impl Builder { color_stops: stops })) } -} \ No newline at end of file +} diff --git a/graphics/src/layer.rs b/graphics/src/layer.rs index 65e70cb3..08f07c0e 100644 --- a/graphics/src/layer.rs +++ b/graphics/src/layer.rs @@ -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) }) -} \ No newline at end of file +} diff --git a/graphics/src/layer/image.rs b/graphics/src/layer/image.rs index 387b60ed..cbba7888 100644 --- a/graphics/src/layer/image.rs +++ b/graphics/src/layer/image.rs @@ -20,4 +20,4 @@ pub enum Image { /// The bounds of the image. bounds: Rectangle, }, -} \ No newline at end of file +} diff --git a/graphics/src/layer/mesh.rs b/graphics/src/layer/mesh.rs index a025675a..8a6b1d70 100644 --- a/graphics/src/layer/mesh.rs +++ b/graphics/src/layer/mesh.rs @@ -36,4 +36,4 @@ impl <'a> Into