Skip to content

Commit

Permalink
chore: apply various clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Jul 4, 2024
1 parent df20c73 commit 28137c5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/backend/l10n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::collections::HashMap;
pub fn list_locales() -> Vec<String> {
gnome_desktop::all_locales()
.iter()
.map(|gs| gs.to_string())
.map(std::string::ToString::to_string)
.collect_vec()
}

Expand Down
3 changes: 1 addition & 2 deletions src/disks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

mod osprobe;

use color_eyre::eyre::OptionExt;
use osprobe::OSProbe;
use std::{collections::HashMap, path::PathBuf};

Expand Down Expand Up @@ -48,7 +47,7 @@ pub fn detect_os() -> Vec<DiskInit> {
.find(|(path, _)| path.starts_with(&disk.name))
.map(|(_, osname)| osname.to_string())
.unwrap_or(OSNAME_PLACEHOLDER.to_string()),
devpath: PathBuf::from(disk.fullname.clone()),
devpath: disk.fullname.clone(),
};
tracing::debug!(?ret, "Found disk");
ret
Expand Down
1 change: 0 additions & 1 deletion src/install.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use color_eyre::Result;
use gtk::gdk::Monitor;
use std::path::{Path, PathBuf};
use sys_mount::Unmount;

Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use tracing_subscriber::prelude::*;

#[derive(Debug, Default)]
struct InstallationState {
pub timezone: Option<String>,
pub langlocale: Option<String>,
pub destination_disk: Option<DiskInit>,
pub installation_type: Option<InstallationType>,
Expand Down

0 comments on commit 28137c5

Please sign in to comment.