mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-15 03:07:02 +05:30
fix: adjust for toml 0.6.0 upgrade
This commit is contained in:
parent
561733796b
commit
a0ba1db28a
3 changed files with 33 additions and 36 deletions
|
@ -23,7 +23,7 @@ fn main() -> Result<()> {
|
|||
let config_path = get_config_path()?;
|
||||
let config_str =
|
||||
std::fs::read_to_string(config_path.as_path()).unwrap_or_default();
|
||||
let config: Replacements<'_> = toml::from_str(&config_str)?;
|
||||
let config: Replacements = toml::from_str(&config_str)?;
|
||||
config.validate()?;
|
||||
monitor(config);
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue