remove redundant
This commit is contained in:
parent
22f5f06e5c
commit
116fd90232
1 changed files with 2 additions and 5 deletions
|
@ -16,11 +16,8 @@ pub fn load_shinystats(executable_path: &str) -> Result<Vec<Shinystruct>, Errorf
|
|||
}
|
||||
|
||||
pub fn load_gear(executable_path: &str) -> Result<HashMap<String, gearjson::GearJsonItem>, Errorfr> {
|
||||
// shiny_stats.json
|
||||
let a: Result<HashMap<String, gearjson::GearJsonItem>, Errorfr> =
|
||||
serde_json5::from_reader(&mut fs::File::open(executable_path.to_owned() + "/data/gear.json").map_err(|_| Errorfr::GearJsonMissing)?).map_err(|_| Errorfr::GearJsonCorrupt);
|
||||
|
||||
a
|
||||
// gear.json (ONLY FOR PERFECT ITEM FUNCTION GEN)
|
||||
serde_json5::from_reader(&mut fs::File::open(executable_path.to_owned() + "/data/gear.json").map_err(|_| Errorfr::GearJsonMissing)?).map_err(|_| Errorfr::GearJsonCorrupt)
|
||||
}
|
||||
pub fn dl_json_fr(dlvalue: &String, executable_path: &str) {
|
||||
let jsons = DownloadJsons::from(dlvalue.clone());
|
||||
|
|
Loading…
Add table
Reference in a new issue