Skip to content

Commit

Permalink
ran clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hurricane996 committed Aug 15, 2022
1 parent 6345013 commit 85e1e64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rendering/component/splits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use crate::{
settings::{Gradient, ListGradient},
};


pub struct Cache<I, L> {
icons: Vec<Option<Icon<I>>>,
splits: Vec<SplitCache<L>>,
Expand Down Expand Up @@ -56,7 +55,8 @@ pub(in crate::rendering) fn render<A: ResourceAllocator>(
component: &State,
layout_state: &LayoutState,
) {
let column_width = context.measure_numbers("24:00:00", &mut cache.column_width_label, DEFAULT_TEXT_SIZE);
let column_width =
context.measure_numbers("24:00:00", &mut cache.column_width_label, DEFAULT_TEXT_SIZE);

let text_color = solid(&layout_state.text_color);

Expand Down Expand Up @@ -119,8 +119,8 @@ pub(in crate::rendering) fn render<A: ResourceAllocator>(
let mut right_x = width - PADDING;
for (label, cache) in column_labels.iter().zip(&mut cache.column_labels) {
// TODO In LiveSplit desktop, the column width varies based on whether or not the current column tracks
// delta, with delta column width being `measure_width("9:00:00")` and regular column width being
// `measure_width("24:00:00")`. Implementing this in livesplit-core requires tracking column types in
// delta, with delta column width being `measure_width("9:00:00")` and regular column width being
// `measure_width("24:00:00")`. Implementing this in livesplit-core requires tracking column types in
// `splits::State`, which I don't feel like doing right now.
let left_x = right_x - column_width;

Expand Down

0 comments on commit 85e1e64

Please sign in to comment.