projects
/
recipes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rustfmt
[recipes.git]
/
backend
/
src
/
config.rs
diff --git
a/backend/src/config.rs
b/backend/src/config.rs
index
393a03b
..
24af485
100644
(file)
--- a/
backend/src/config.rs
+++ b/
backend/src/config.rs
@@
-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")
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 {
}
}
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,
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
+}