Skip to content

Commit 0bc93b1

Browse files
committed
minor improvement
1 parent 2a19e59 commit 0bc93b1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/gui/pages/notifications_page.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ fn data_notification_log<'a>(
201201
)
202202
.push(threshold_bar(
203203
logged_notification,
204-
chart_type,
205204
first_entry_data_info,
206205
language,
207206
font,
@@ -336,11 +335,11 @@ fn logged_notifications<'a>(sniffer: &Sniffer) -> Column<'a, Message, StyleType>
336335

337336
fn threshold_bar<'a>(
338337
logged_notification: &DataThresholdExceeded,
339-
chart_type: ChartType,
340338
first_entry_data_info: DataInfo,
341339
language: Language,
342340
font: Font,
343341
) -> Row<'a, Message, StyleType> {
342+
let chart_type = logged_notification.chart_type;
344343
let data_info = logged_notification.data_info;
345344
let (incoming_bar_len, outgoing_bar_len) =
346345
get_bars_length(chart_type, &first_entry_data_info, &data_info);

0 commit comments

Comments
 (0)