summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-03-12 20:40:18 +0100
committerGitHub <noreply@github.com>2021-03-12 19:40:18 +0000
commit5aa02816c47e4b50fc51bcb830c5864f681b3913 (patch)
treebe6b9da134cab5674dbdc6b89d154b3f703325dc
parentd5dd009a6d313626aec6f69db397e78734653a5f (diff)
downloadalacritty-5aa02816c47e4b50fc51bcb830c5864f681b3913.tar.gz
alacritty-5aa02816c47e4b50fc51bcb830c5864f681b3913.zip
Fix inconsistent_struct_constructor clippy lint
-rw-r--r--alacritty/src/display/wayland_theme.rs4
-rw-r--r--alacritty/src/url.rs2
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.