diff options
| author | Fuwn <[email protected]> | 2024-06-03 14:57:47 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-03 14:57:47 -0700 |
| commit | a6b766541ae58053ae705e0559d1a1ae8212634b (patch) | |
| tree | aeb55206e77679b2f5e1f47fae7f1bda5c6df5b9 /crates/whirl_config/src/lib.rs | |
| parent | Merge pull request #153 from Whirlsplash/renovate/actions-checkout-3.x (diff) | |
| download | whirl-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.rs | 12 |
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 { |