Fix minor bug in UserSettings

The timestamp couldn't be set with `--config-toml 'user.timestamp=...'`.
This commit is contained in:
Ilya Grigoriev 2023-01-01 15:45:29 -08:00
parent 6d8d495075
commit 95637e252c

View file

@ -54,9 +54,11 @@ impl UserSettings {
config_builder =
config_builder.add_source(config::File::from_str(s, config::FileFormat::Toml));
}
let new_config = config_builder.build()?;
let timestamp = get_timestamp_config(&new_config, "user.timestamp");
Ok(UserSettings {
config: config_builder.build()?,
timestamp: self.timestamp.clone(),
config: new_config,
timestamp,
})
}