From a6b766541ae58053ae705e0559d1a1ae8212634b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 Jun 2024 14:57:47 -0700 Subject: fix: bump rust and update accordingly --- crates/whirl_config/src/lib.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'crates/whirl_config/src/lib.rs') 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 { -- cgit v1.2.3