diff options
author | FxQnLr <[email protected]> | 2023-01-29 14:14:43 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-29 14:14:43 +0100 |
commit | 35d9e091b9b6f68e51a79c1a10e0a95cd2ae974e (patch) | |
tree | 68a63f39a5bf6241e4ca9499d03ea148ec9737c4 /src/config.rs | |
parent | 8f3c77986b36d7653fd44e16ef986f0ad284e0c4 (diff) | |
parent | d7d0c904bff665ab5c8355f2381a0628ebbf7a30 (diff) | |
download | modlist-35d9e091b9b6f68e51a79c1a10e0a95cd2ae974e.tar modlist-35d9e091b9b6f68e51a79c1a10e0a95cd2ae974e.tar.gz modlist-35d9e091b9b6f68e51a79c1a10e0a95cd2ae974e.zip |
Merge pull request #3 from FxQnLr/new_input
New input, fuck it
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 383e7ee..ded0062 100644 --- a/src/config.rs +++ b/src/config.rs | |||
@@ -25,7 +25,6 @@ impl Cfg { | |||
25 | if err.kind() == std::io::ErrorKind::NotFound { | 25 | if err.kind() == std::io::ErrorKind::NotFound { |
26 | println!("No config file found, creating one"); | 26 | println!("No config file found, creating one"); |
27 | let default_cfg = Cfg { data: String::from("./"), apis: Apis { modrinth: String::from("https://api.modrinth.com/v2/") } }; | 27 | let default_cfg = Cfg { data: String::from("./"), apis: Apis { modrinth: String::from("https://api.modrinth.com/v2/") } }; |
28 | //TODO Error | ||
29 | let mut file = File::create(devdir(configfile.to_str().unwrap()))?; | 28 | let mut file = File::create(devdir(configfile.to_str().unwrap()))?; |
30 | println!("Created config file"); | 29 | println!("Created config file"); |
31 | file.write_all(&toml::to_string(&default_cfg)?.as_bytes())?; | 30 | file.write_all(&toml::to_string(&default_cfg)?.as_bytes())?; |