diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-03-12 20:40:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 19:40:18 +0000 |
commit | 5aa02816c47e4b50fc51bcb830c5864f681b3913 (patch) | |
tree | be6b9da134cab5674dbdc6b89d154b3f703325dc | |
parent | d5dd009a6d313626aec6f69db397e78734653a5f (diff) | |
download | alacritty-5aa02816c47e4b50fc51bcb830c5864f681b3913.tar.gz alacritty-5aa02816c47e4b50fc51bcb830c5864f681b3913.zip |
Fix inconsistent_struct_constructor clippy lint
-rw-r--r-- | alacritty/src/display/wayland_theme.rs | 4 | ||||
-rw-r--r-- | alacritty/src/url.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/alacritty/src/display/wayland_theme.rs b/alacritty/src/display/wayland_theme.rs index 7a9aac16..b56ad0c7 100644 --- a/alacritty/src/display/wayland_theme.rs +++ b/alacritty/src/display/wayland_theme.rs @@ -8,8 +8,8 @@ const INACTIVE_OPACITY: u8 = 127; #[derive(Debug, Clone)] pub struct AlacrittyWaylandTheme { - pub background: ARGBColor, pub foreground: ARGBColor, + pub background: ARGBColor, pub dim_foreground: ARGBColor, pub hovered_close_icon: ARGBColor, pub hovered_maximize_icon: ARGBColor, @@ -32,8 +32,8 @@ impl AlacrittyWaylandTheme { background, dim_foreground, hovered_close_icon, - hovered_minimize_icon, hovered_maximize_icon, + hovered_minimize_icon, } } } diff --git a/alacritty/src/url.rs b/alacritty/src/url.rs index d86b514a..e4a29512 100644 --- a/alacritty/src/url.rs +++ b/alacritty/src/url.rs @@ -138,7 +138,7 @@ impl Urls { if url.lines.last().map(|last| last.color) == Some(color) { url.lines.last_mut().unwrap().end = end; } else { - url.lines.push(RenderLine { color, start, end }); + url.lines.push(RenderLine { start, end, color }); } // Update excluded cells at the end of the URL. |