chg: Added use std::io::Result

This commit is contained in:
SinTan1729 2024-04-03 17:40:59 -05:00
parent e742c0ab5e
commit cdc3508a0c
No known key found for this signature in database
GPG Key ID: EB3E68BFBA25C85F

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