diff --git a/boot_diags/src/app.rs b/boot_diags/src/app.rs
index 998c62e..c6d7caf 100644
--- a/boot_diags/src/app.rs
+++ b/boot_diags/src/app.rs
@@ -17,11 +17,11 @@ use crate::diags;
use core::{
action::Action,
components::{
- footer::Footer, fps::FpsCounter, left::Left, popup, right::Right, state::StatefulList,
- title::Title, Component,
+ Component, footer::Footer, fps::FpsCounter, left::Left, popup, right::Right,
+ state::StatefulList, title::Title,
},
config::Config,
- line::{get_disk_description_right, get_part_description, DVLine},
+ line::{DVLine, get_disk_description_right, get_part_description},
state::{CloneSettings, Mode},
system::{
boot::{self, SafeMode},
@@ -894,7 +894,7 @@ fn build_right_items(app: &App) -> Action {
line_colors: vec![Color::Reset],
},
]);
- header_lines.append(&mut get_disk_description_right(&disk, Some(parts)));
+ header_lines.append(&mut get_disk_description_right(disk, Some(parts)));
// Add header
if !header_lines.is_empty() {
@@ -957,10 +957,10 @@ fn build_right_items(app: &App) -> Action {
let disk_list = app.clone.disk_list.lock().unwrap();
disk_list
.iter()
- .for_each(|disk| items.push(get_disk_description_right(&disk, None)));
+ .for_each(|disk| items.push(get_disk_description_right(disk, None)));
}
Mode::SelectParts => {
- vec!["Boot", "OS"].iter().for_each(|s| {
+ ["Boot", "OS"].iter().for_each(|s| {
labels.push(vec![DVLine {
line_parts: vec![String::from(*s)],
line_colors: vec![Color::Cyan],
@@ -971,12 +971,12 @@ fn build_right_items(app: &App) -> Action {
let disk_list = app.clone.disk_list.lock().unwrap();
if let Some(disk) = disk_list.get(index) {
// Disk Details
- items.push(get_disk_description_right(&disk, None));
+ items.push(get_disk_description_right(disk, None));
// Partition Details
disk.parts
.iter()
- .for_each(|part| items.push(get_part_description(&part)));
+ .for_each(|part| items.push(get_part_description(part)));
}
}
}
diff --git a/boot_diags/src/main.rs b/boot_diags/src/main.rs
index 7128445..fe8b922 100644
--- a/boot_diags/src/main.rs
+++ b/boot_diags/src/main.rs
@@ -15,7 +15,6 @@
//
use clap::Parser;
use color_eyre::Result;
-use core;
use crate::app::App;
diff --git a/core/src/components/footer.rs b/core/src/components/footer.rs
index d266be2..2ab7406 100644
--- a/core/src/components/footer.rs
+++ b/core/src/components/footer.rs
@@ -51,6 +51,7 @@ impl Component for Footer {
}
fn update(&mut self, action: Action) -> Result