aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_config/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-23 14:15:04 +0000
committerFuwn <[email protected]>2021-05-23 14:15:04 +0000
commit9cbe5346598a2437ee54e45e09673f0ee643f825 (patch)
treea997d18bb90c00d9ebdc415ccc7566e8f40fac28 /crates/whirl_config/src/lib.rs
parentdocs(server): minor doc changes (diff)
downloadwhirl-9cbe5346598a2437ee54e45e09673f0ee643f825.tar.xz
whirl-9cbe5346598a2437ee54e45e09673f0ee643f825.zip
refactor(config): deprecate refresh method
Diffstat (limited to 'crates/whirl_config/src/lib.rs')
-rw-r--r--crates/whirl_config/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/whirl_config/src/lib.rs b/crates/whirl_config/src/lib.rs
index c2264f2..0a6d225 100644
--- a/crates/whirl_config/src/lib.rs
+++ b/crates/whirl_config/src/lib.rs
@@ -37,6 +37,10 @@ pub struct Config {
}
impl Config {
/// Re-fetch the configuration from the configuration file.
+ #[deprecated(
+ note = "the current implementation of the configurations system automatically performs \
+ refreshes, this method has no effects"
+ )]
pub fn refresh() { let _ = config::Config::new().refresh(); }
fn load() -> Result<Self, ConfigError> {