Reformat
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-03-14 11:21:57 +01:00
parent 80bbf9c3df
commit 9577598783
2 changed files with 3 additions and 4 deletions

View file

@ -1,10 +1,10 @@
use crate::ChampInfo;
use indexmap::IndexMap;
use log::{error, info};
use serde_derive::{Deserialize, Serialize};
use serde_json::Value;
use std::fs;
use std::path::PathBuf;
use crate::ChampInfo;
#[derive(Serialize, Deserialize)]
struct ItemSet {

View file

@ -35,7 +35,7 @@ struct Champion {
pub struct ChampInfo {
id: String,
name: String,
key: String
key: String,
}
const USER_AGENT_KEY: &str = "User-Agent";
@ -105,7 +105,6 @@ fn main() {
if !champion.data.contains_key(&champ_id) {
champ_id = get_champ_from_key(&champion, &champ_id);
}
if champion.data.contains_key(&champ_id) {
let path = lol_champs_dir.join(&champ_id).join("Recommended");
fs::create_dir_all(&path).unwrap();