diff options
author | Radosław Kot <rdkt13@gmail.com> | 2021-04-24 19:44:27 +0200 |
---|---|---|
committer | Radosław Kot <rdkt13@gmail.com> | 2021-05-08 17:43:16 +0200 |
commit | 98662dd899d4eaab5dc2da07d5bb658960b588a6 (patch) | |
tree | c7513c9038ee817c62e444ff02507bca2da363bc /src/config.rs | |
parent | 82d23c76a8637360e03c0b43d9a1c0c26d820d9f (diff) |
Modify tests to use both ConfigBuilder and Config
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 5b4d40e..7b7da2d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -56,6 +56,8 @@ impl Config { T: Source + Send + Sync, { self.sources.push(Box::new(source)); + + #[allow(deprecated)] self.refresh() } @@ -67,6 +69,8 @@ impl Config { T: Source + Send + Sync, { self.sources.push(Box::new(source)); + + #[allow(deprecated)] self.refresh()?; Ok(self) } @@ -107,6 +111,8 @@ impl Config { T: Into<Value>, { self.defaults.insert(key.parse()?, value.into()); + + #[allow(deprecated)] self.refresh() } @@ -124,6 +130,8 @@ impl Config { T: Into<Value>, { self.overrides.insert(key.parse()?, value.into()); + + #[allow(deprecated)] self.refresh() } |