Commit 87ca7377 authored by Stefan Schindler's avatar Stefan Schindler
Browse files

Cleanup

parent a421acc1
[package] [package]
name = "wipe_buddy" name = "wipe_buddy"
version = "0.1.0" version = "0.1.0"
authors = ["stefschi"] authors = ["Stefan Schindler <dns2utf8@estada.ch>"]
[dependencies] [dependencies]
ansi_term = "0.9" ansi_term = "0.9"
......
...@@ -115,8 +115,7 @@ fn mark_mounted_disks(disks: &Vec<Arc<DiskInformation>>, mounts: String) { ...@@ -115,8 +115,7 @@ fn mark_mounted_disks(disks: &Vec<Arc<DiskInformation>>, mounts: String) {
e.starts_with("/dev/") e.starts_with("/dev/")
}); });
for ref disk in disks { for disk in disks {
let disk = *disk;
let disk_path = format!("/dev/{}", disk.name); let disk_path = format!("/dev/{}", disk.name);
if mount_lines.any(|e| e.starts_with(&*disk_path)) { if mount_lines.any(|e| e.starts_with(&*disk_path)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment