chg: Added use std::io::Result

This commit is contained in:
Sayantan Santra 2024-04-03 17:40:59 -05:00
parent e742c0ab5e
commit cdc3508a0c
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
1 changed files with 2 additions and 2 deletions

View File

@ -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