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

Cleanup

parent a421acc1
[package]
name = "wipe_buddy"
version = "0.1.0"
authors = ["stefschi"]
authors = ["Stefan Schindler <dns2utf8@estada.ch>"]
[dependencies]
ansi_term = "0.9"
......
......@@ -115,8 +115,7 @@ fn mark_mounted_disks(disks: &Vec<Arc<DiskInformation>>, mounts: String) {
e.starts_with("/dev/")
});
for ref disk in disks {
let disk = *disk;
for disk in disks {
let disk_path = format!("/dev/{}", disk.name);
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