diff options
author | 2022-10-06 07:28:05 -0700 | |
---|---|---|
committer | 2022-10-06 07:28:05 -0700 | |
commit | cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e (patch) | |
tree | d72191140c2a7a4919a0787431c1c6da60a55964 /graphics | |
parent | 1eb8d972ba60592da7bfc27fe7ec80138e64dd7b (diff) | |
download | iced-cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e.tar.gz iced-cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e.tar.bz2 iced-cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e.zip |
Fixed lint issues & cleaned up some documentation.
Diffstat (limited to '')
-rw-r--r-- | graphics/src/gradient.rs | 1 | ||||
-rw-r--r-- | graphics/src/gradient/linear.rs | 2 | ||||
-rw-r--r-- | graphics/src/layer.rs | 2 | ||||
-rw-r--r-- | graphics/src/layer/image.rs | 2 | ||||
-rw-r--r-- | graphics/src/layer/mesh.rs | 2 | ||||
-rw-r--r-- | graphics/src/layer/quad.rs | 2 | ||||
-rw-r--r-- | graphics/src/layer/text.rs | 2 | ||||
-rw-r--r-- | graphics/src/transformation.rs | 2 | ||||
-rw-r--r-- | graphics/src/triangle.rs | 2 |
9 files changed, 8 insertions, 9 deletions
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<Style> for Gradient { } } } -}
\ No newline at end of file +} diff --git a/graphics/src/layer/quad.rs b/graphics/src/layer/quad.rs index 4380fb6c..4def8427 100644 --- a/graphics/src/layer/quad.rs +++ b/graphics/src/layer/quad.rs @@ -27,4 +27,4 @@ pub struct Quad { unsafe impl bytemuck::Zeroable for Quad {} #[allow(unsafe_code)] -unsafe impl bytemuck::Pod for Quad {}
\ No newline at end of file +unsafe impl bytemuck::Pod for Quad {} diff --git a/graphics/src/layer/text.rs b/graphics/src/layer/text.rs index b6dd4b7f..74f7a676 100644 --- a/graphics/src/layer/text.rs +++ b/graphics/src/layer/text.rs @@ -23,4 +23,4 @@ pub struct Text<'a> { /// The vertical alignment of the [`Text`]. pub vertical_alignment: alignment::Vertical, -}
\ No newline at end of file +} diff --git a/graphics/src/transformation.rs b/graphics/src/transformation.rs index 03f453db..116b3058 100644 --- a/graphics/src/transformation.rs +++ b/graphics/src/transformation.rs @@ -56,4 +56,4 @@ impl Into<Mat4> for Transformation { fn into(self) -> Mat4 { self.0 } -}
\ No newline at end of file +} diff --git a/graphics/src/triangle.rs b/graphics/src/triangle.rs index 8f82c5df..f019d55d 100644 --- a/graphics/src/triangle.rs +++ b/graphics/src/triangle.rs @@ -16,4 +16,4 @@ pub struct Mesh2D { pub struct Vertex2D { /// The vertex position in 2D space. pub position: [f32; 2], -}
\ No newline at end of file +} |