Tidy up and reorganize things, they're just about in shape

This commit is contained in:
Lucien Greathouse 2018-05-09 00:01:44 -07:00
parent d9aec292fa
commit 5a82879115
9 changed files with 174 additions and 191 deletions

View file

@ -2,8 +2,6 @@ use std::path::{Path, PathBuf};
use partition::Partition;
// TODO: Add lifetime, switch to using Cow<'a, str> instead of String? It's
// possible that it would be too cumbersome!
#[derive(Debug, Clone, PartialEq, Hash)]
pub struct FileRoute {
pub partition: String,
@ -43,7 +41,7 @@ impl FileRoute {
// This FileRoute refers to the partition itself
if partition.target.len() == 0 {
// We're targeting the game itself!
// We're targeting the game!
"game".to_string()
} else {
partition.target.last().unwrap().clone()