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 ed4b2b8 commit d98cef9Copy full SHA for d98cef9
src/main.rs
@@ -2,9 +2,8 @@ use citadels::server::routes::get_router;
2
3
#[tokio::main]
4
async fn main() {
5
- if cfg!(feature = "dotenv") {
6
- dotenv::dotenv().expect(".env not found");
7
- }
+ #[cfg(feature = "dotenv")]
+ dotenv::dotenv().expect(".env not found");
8
citadels::logger::init();
9
10
let port = "0.0.0.0:8080";
0 commit comments