mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Silence name warnings
This commit is contained in:
@@ -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
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user