mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-14 18:57:02 +05:30
feat: validate config at launch
This commit is contained in:
parent
0e4fe250d7
commit
2c0a087231
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ fn main() -> Result<()> {
|
|||
let config_str =
|
||||
std::fs::read_to_string(config_path.as_path()).unwrap_or_default();
|
||||
let config: Replacements<'_> = toml::from_str(&config_str)?;
|
||||
config.validate()?;
|
||||
monitor(config);
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue