Skip to content

Commit

Permalink
fixup! Add a Config::set_once() function to set a value once (and let…
Browse files Browse the repository at this point in the history
… Config::merge() overwrite it later
  • Loading branch information
matthiasbeyer committed Mar 9, 2021
1 parent e626dc8 commit fac5911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl Config {
self.refresh()
}

pub fn set_once<T>(&mut self, key: &str, value: Value) -> Result<()> {
pub fn set_once(&mut self, key: &str, value: Value) -> Result<()> {
let expr: path::Expression = key.parse()?;

// Traverse the cache using the path to (possibly) retrieve a value
Expand Down

0 comments on commit fac5911

Please sign in to comment.