aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_config/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-03 14:57:47 -0700
committerFuwn <[email protected]>2024-06-03 14:57:47 -0700
commita6b766541ae58053ae705e0559d1a1ae8212634b (patch)
treeaeb55206e77679b2f5e1f47fae7f1bda5c6df5b9 /crates/whirl_config/src/lib.rs
parentMerge pull request #153 from Whirlsplash/renovate/actions-checkout-3.x (diff)
downloadwhirl-old.tar.xz
whirl-old.zip
fix: bump rust and update accordinglyold
Diffstat (limited to 'crates/whirl_config/src/lib.rs')
-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 {