Clippy suggestions
This commit is contained in:
parent
00cb8f7a9b
commit
c48a37d56a
5 changed files with 22 additions and 22 deletions
|
|
@ -120,7 +120,7 @@ fn add_monitor_view_state(group: UnifiedGroupData) -> Vec<MonitorViewState> {
|
|||
.monitors
|
||||
.into_par_iter()
|
||||
.map(|monitor| {
|
||||
let status_history = get_status_history(&monitor.heartbeats);
|
||||
let status_history = get_status_history(monitor.heartbeats);
|
||||
|
||||
let status = match monitor.heartbeats.last().map(|h| h.status) {
|
||||
Some(1) => MonitorStatus::Up,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue