rustfmt
[recipes.git] / backend / src / config.rs
index 393a03b..24af485 100644 (file)
@@ -16,17 +16,18 @@ pub struct Config {
 impl fmt::Debug for Config {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         f.debug_struct("Config")
-         .field("port", &self.port)
-         .field("smtp_login", &self.smtp_login)
-         .field("smtp_password", &"*****")
-         .finish()
+            .field("port", &self.port)
+            .field("smtp_login", &self.smtp_login)
+            .field("smtp_password", &"*****")
+            .finish()
     }
 }
 
 pub fn load() -> Config {
-    let f = File::open(consts::FILE_CONF).unwrap_or_else(|_| panic!("Failed to open configuration file {}", consts::FILE_CONF));
+    let f = File::open(consts::FILE_CONF)
+        .unwrap_or_else(|_| panic!("Failed to open configuration file {}", consts::FILE_CONF));
     match from_reader(f) {
         Ok(c) => c,
-        Err(e) => panic!("Failed to load config: {}", e)
+        Err(e) => panic!("Failed to load config: {}", e),
     }
-}
\ No newline at end of file
+}