mirror of
https://github.com/lov3b/ecb-rates.git
synced 2025-02-22 09:50:10 +01:00
Correct openoptions
This commit is contained in:
parent
0bd3c9004f
commit
5aaa10538b
@ -62,12 +62,11 @@ impl Cache {
|
||||
.context("Failed to get config home")?
|
||||
.get_config_path()?;
|
||||
fs::create_dir_all(&config_path)?;
|
||||
eprintln!("Config dir: {}", &config_path.display());
|
||||
|
||||
config_path.push(FILE_NAME);
|
||||
eprintln!("File to write: {}", &config_path.display());
|
||||
|
||||
let file = fs::File::options()
|
||||
.write(true)
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.open(&config_path)?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user