aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_config
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-03 14:57:47 +0000
committerFuwn <[email protected]>2024-06-03 14:57:47 +0000
commit3abe7df3fbc12a8df259f48c746f2b9344a5f33c (patch)
treeefec8803b8b65db8f56fafe884f879921091805a /crates/whirl_config
parentMerge pull request #153 from Whirlsplash/renovate/actions-checkout-3.x (diff)
downloadwhirl-old.tar.xz
whirl-old.zip
fix: bump rust and update accordinglyorigin/oldold
Diffstat (limited to 'crates/whirl_config')
-rw-r--r--crates/whirl_config/src/lib.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/crates/whirl_config/src/lib.rs b/crates/whirl_config/src/lib.rs
index b5f9d6e..fbcdee2 100644
--- a/crates/whirl_config/src/lib.rs
+++ b/crates/whirl_config/src/lib.rs
@@ -3,13 +3,7 @@
//! Configuration utilities, to interact with the configuration system.
-#![feature(
- type_ascription,
- hash_set_entry,
- type_name_of_val,
- decl_macro,
- proc_macro_hygiene
-)]
+#![feature(type_ascription, hash_set_entry, decl_macro, proc_macro_hygiene)]
#![deny(
warnings,
nonstandard_style,
@@ -74,7 +68,7 @@ impl Config {
/// - May panic if the configuration is unable to be read.
#[must_use]
pub fn get() -> Self {
- return if let Err(why) = Self::load() {
+ if let Err(why) = Self::load() {
error!(
"unable to load configuration file, reverting to default value: {}",
why
@@ -86,7 +80,7 @@ impl Config {
Self::default()
} else {
Self::load().unwrap()
- };
+ }
}
}
impl Default for Config {