remove unused function
This commit is contained in:
parent
f03c42f8f7
commit
81cc929595
|
@ -68,13 +68,6 @@ pub fn read_config(file: &String) -> Config {
|
||||||
serde_json::from_str(&read[..]).expect("couldn't parse json")
|
serde_json::from_str(&read[..]).expect("couldn't parse json")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn ensure_exists(path: String) {
|
|
||||||
let p = Path::new(&path);
|
|
||||||
if !p.exists() {
|
|
||||||
fs::create_dir_all(p).expect("couldn't create folder")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub latest_date: String,
|
pub latest_date: String,
|
||||||
|
|
Loading…
Reference in New Issue