Fix inconsistent_struct_constructor clippy lint

This commit is contained in:
Matthias Krüger 2021-03-12 20:40:18 +01:00 committed by GitHub
parent d5dd009a6d
commit 5aa02816c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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,
}
}
}

View file

@ -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.