Silence name warnings

This commit is contained in:
Oliver Hamlet
2018-10-04 22:16:29 +01:00
parent 3e1c2084e5
commit 107f61868c
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ mod tests {
} }
State { State {
game_type: GameType::tes4, game_type: GameType::Tes4,
data_path: data_path, data_path: data_path,
loot_path: loot_path.into(), loot_path: loot_path.into(),
active_plugins: active_plugins active_plugins: active_plugins
+10 -10
View File
@@ -42,20 +42,20 @@ impl From<io::Error> for Error {
} }
pub enum GameType { pub enum GameType {
tes4, Tes4,
tes5, Tes5,
tes5se, Tes5se,
tes5vr, Tes5vr,
fo3, Fo3,
fonv, Fonv,
fo4, Fo4,
fo4vr, Fo4vr,
} }
impl GameType { impl GameType {
fn supports_light_plugins(&self) -> bool { fn supports_light_plugins(&self) -> bool {
match self { match self {
GameType::tes5se | GameType::tes5vr | GameType::fo4 | GameType::fo4vr => true, GameType::Tes5se | GameType::Tes5vr | GameType::Fo4 | GameType::Fo4vr => true,
_ => false, _ => false,
} }
} }
@@ -164,7 +164,7 @@ mod tests {
} }
State { State {
game_type: GameType::tes4, game_type: GameType::Tes4,
data_path: data_path, data_path: data_path,
loot_path: PathBuf::new(), loot_path: PathBuf::new(),
active_plugins: HashSet::new(), active_plugins: HashSet::new(),