We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e46d79f commit 7194b56Copy full SHA for 7194b56
src/lib.rs
@@ -46,6 +46,11 @@ impl Config {
46
}
47
48
49
+impl Default for Config {
50
+ fn default() -> Self {
51
+ Self::new()
52
+ }
53
+}
54
55
pub mod controller;
56
pub mod postgres;
src/main.rs
@@ -26,7 +26,7 @@ async fn main() -> io::Result<()> {
26
dotenv().ok();
27
28
let state = State::default();
29
- let config = Config::new();
+ let config = Config::default();
30
31
let controller = controller::run(state.clone(), config);
32
0 commit comments