fix rendering bug
This commit is contained in:
@@ -387,7 +387,6 @@ impl Config {
|
||||
};
|
||||
|
||||
if !config_path.exists() {
|
||||
log::info!("No config file found at {:?}, creating with defaults", config_path);
|
||||
let default_config = Self::default();
|
||||
if let Err(e) = default_config.save() {
|
||||
log::warn!("Failed to write default config: {}", e);
|
||||
@@ -398,7 +397,6 @@ impl Config {
|
||||
match fs::read_to_string(&config_path) {
|
||||
Ok(contents) => match serde_json::from_str(&contents) {
|
||||
Ok(config) => {
|
||||
log::info!("Loaded config from {:?}", config_path);
|
||||
config
|
||||
}
|
||||
Err(e) => {
|
||||
@@ -431,7 +429,6 @@ impl Config {
|
||||
.map_err(|e| std::io::Error::new(std::io::ErrorKind::InvalidData, e))?;
|
||||
|
||||
fs::write(&config_path, json)?;
|
||||
log::info!("Saved config to {:?}", config_path);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user