Skip to content

Commit

Permalink
Fix rustfmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxcode committed Nov 15, 2024
1 parent f6e6306 commit 6be1809
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/data/disks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl Disk {
name: Option<&str>,
mount_point: &Path,
is_removable: bool,
canonicalize_paths: bool
canonicalize_paths: bool,
) -> Self {
Self {
mount_point: Self::canonicalize(&mount_point, canonicalize_paths),
Expand All @@ -35,7 +35,6 @@ impl Disk {
disk.is_removable(),
canonicalize_paths,
)

}

/// Returns the mount point of the disk
Expand Down Expand Up @@ -130,7 +129,10 @@ fn load_disks(canonicalize_paths: bool) -> Vec<Disk> {
if drives & 1 != 0 {
let mount_point = format!("{}:\\", letter as char);

if !disks.iter().any(|d| d.mount_point.to_str().unwrap_or_default() == mount_point) {
if !disks
.iter()
.any(|d| d.mount_point.to_str().unwrap_or_default() == mount_point)
{
disks.push(Disk::new(
None,
&PathBuf::from(&mount_point),
Expand Down

0 comments on commit 6be1809

Please sign in to comment.