From 4762064ae5f742e31f47b1de0fe4ae4af0b5d1f7 Mon Sep 17 00:00:00 2001 From: Lyra Date: Fri, 6 Dec 2019 23:47:30 +0100 Subject: [PATCH] Import the Settings struct instead of prefixing the namespace --- server/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main.rs b/server/src/main.rs index 60e85e57..cdcd7a65 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -10,6 +10,7 @@ use lemmy_server::db::establish_connection; use lemmy_server::feeds; use lemmy_server::nodeinfo; use lemmy_server::websocket::server::*; +use lemmy_server::Settings; use std::env; use std::time::{Duration, Instant}; @@ -191,7 +192,7 @@ fn main() { // Start chat server actor in separate thread let server = ChatServer::default().start(); - let settings = lemmy_server::Settings::get(); + let settings = Settings::get(); // Create Http server with websocket support HttpServer::new(move || {