diff options
| author | Ayose <ayosec@gmail.com> | 2022-12-02 00:58:10 +0000 |
|---|---|---|
| committer | Ayose <ayosec@gmail.com> | 2022-12-02 00:58:10 +0000 |
| commit | fc97c07516658f0a10970189d65e2766fb1071c3 (patch) | |
| tree | d893c6a9745750a077c31e0de6b24d9482a3f3c2 | |
| parent | 2772e72a94817d9109d6a7733ba775dead175557 (diff) | |
| download | r-alacritty-fc97c07516658f0a10970189d65e2766fb1071c3.tar.gz r-alacritty-fc97c07516658f0a10970189d65e2766fb1071c3.tar.bz2 r-alacritty-fc97c07516658f0a10970189d65e2766fb1071c3.zip | |
Apply rustfmt and clippy to the current branch.
| -rw-r--r-- | alacritty/src/renderer/graphics/shader.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alacritty/src/renderer/graphics/shader.rs b/alacritty/src/renderer/graphics/shader.rs index 0fcac43f..e046c9ae 100644 --- a/alacritty/src/renderer/graphics/shader.rs +++ b/alacritty/src/renderer/graphics/shader.rs @@ -13,7 +13,7 @@ pub(super) const TEXTURES_ARRAY_SIZE: usize = 16; /// /// * Bit 0 (LSB) is 0 for top and 1 for bottom. /// * Bit 1 is 0 for left and 1 for right. -#[derive(Debug, Copy, Clone, PartialEq)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] #[repr(u8)] pub enum VertexSide { TopLeft = 0b00, @@ -81,7 +81,8 @@ pub struct GraphicsShaderProgram { impl GraphicsShaderProgram { pub fn new(shader_version: ShaderVersion) -> Result<Self, ShaderError> { - let shader = ShaderProgram::new(shader_version, None, GRAPHICS_SHADER_V, GRAPHICS_SHADER_F)?; + let shader = + ShaderProgram::new(shader_version, None, GRAPHICS_SHADER_V, GRAPHICS_SHADER_F)?; let u_cell_dimensions; let u_view_dimensions; |