From 7fff3a4ceb89b724976847dc594fe7865cbfac92 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Sun, 9 Jul 2023 15:14:41 -0700 Subject: [PATCH] get rid of useless newlines --- src/lib.rs | 9 ++------- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index be0d64f..149698e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,11 +2,6 @@ use std::{fs, path::Path}; use serde::{Deserialize, Serialize}; -pub struct ConfigFile { - pub latest_date: String, - pub cache_folder: String, -} - pub fn get_home() -> String { let home = match std::env::consts::OS { "linux" => std::env::var("HOME").expect("how is there not a $HOME"), @@ -50,8 +45,8 @@ pub fn read_config(file: &String) -> Config { pub fn ensure_exists(path: &String) { let replaced = path.replace('~', &get_home()[..]); // replace ~ with $HOME let p = Path::new(&replaced); - println!("{}", replaced); - println!("{:?}", p.exists()); + // println!("{}", replaced); + // println!("{:?}", p.exists()); if !p.exists() { fs::create_dir_all(p).expect("couldn't create folder") } diff --git a/src/main.rs b/src/main.rs index 387dcd8..506a026 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ fn main() { let args = Args::parse(); let config_file = args.config_file; - println!("{}", config_file); + // println!("{}", config_file); ggg::create_config(&config_file); let config = ggg::read_config(&config_file); ggg::ensure_exists(&config.cache_folder);