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