From 107f61868cb8885a4d6ba95c161ef423d6c4ad78 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Thu, 4 Oct 2018 19:14:28 +0100 Subject: [PATCH] Silence name warnings --- src/function/eval.rs | 2 +- src/lib.rs | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/function/eval.rs b/src/function/eval.rs index 22ce64f..20c41f8 100644 --- a/src/function/eval.rs +++ b/src/function/eval.rs @@ -211,7 +211,7 @@ mod tests { } State { - game_type: GameType::tes4, + game_type: GameType::Tes4, data_path: data_path, loot_path: loot_path.into(), active_plugins: active_plugins diff --git a/src/lib.rs b/src/lib.rs index 6955d84..42172bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,20 +42,20 @@ impl From for Error { } pub enum GameType { - tes4, - tes5, - tes5se, - tes5vr, - fo3, - fonv, - fo4, - fo4vr, + Tes4, + Tes5, + Tes5se, + Tes5vr, + Fo3, + Fonv, + Fo4, + Fo4vr, } impl GameType { fn supports_light_plugins(&self) -> bool { match self { - GameType::tes5se | GameType::tes5vr | GameType::fo4 | GameType::fo4vr => true, + GameType::Tes5se | GameType::Tes5vr | GameType::Fo4 | GameType::Fo4vr => true, _ => false, } } @@ -164,7 +164,7 @@ mod tests { } State { - game_type: GameType::tes4, + game_type: GameType::Tes4, data_path: data_path, loot_path: PathBuf::new(), active_plugins: HashSet::new(),