From cdc3508a0cb3df77409fd6577dbc6ed965ec4d78 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Wed, 3 Apr 2024 17:40:59 -0500 Subject: [PATCH] chg: Added use std::io::Result --- actix/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix/src/main.rs b/actix/src/main.rs index f241c60..6ce8bab 100644 --- a/actix/src/main.rs +++ b/actix/src/main.rs @@ -9,7 +9,7 @@ use actix_web::{ App, Either, HttpResponse, HttpServer, Responder, }; use rusqlite::Connection; -use std::env; +use std::{env, io::Result}; mod auth; mod database; mod utils; @@ -132,7 +132,7 @@ async fn delete_link( } #[actix_web::main] -async fn main() -> std::io::Result<()> { +async fn main() -> Result<()> { env_logger::init_from_env(env_logger::Env::new().default_filter_or("warn")); // Generate session key in runtime so that restart invalidates older logins