From 93e61a4bd6ad8b5db1083bdd21994bf73b0b90ba Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 17 Apr 2023 20:30:16 +0200 Subject: added clap cli, modified (basically) all user interface functions; changed some functions to easier string handling --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index ded0062..075d884 100644 --- a/src/config.rs +++ b/src/config.rs @@ -27,7 +27,7 @@ impl Cfg { let default_cfg = Cfg { data: String::from("./"), apis: Apis { modrinth: String::from("https://api.modrinth.com/v2/") } }; let mut file = File::create(devdir(configfile.to_str().unwrap()))?; println!("Created config file"); - file.write_all(&toml::to_string(&default_cfg)?.as_bytes())?; + file.write_all(toml::to_string(&default_cfg)?.as_bytes())?; File::open(devdir(configfile.to_str().unwrap()))? } else { return Err(err.into()); -- cgit v1.2.3