1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-10-16 13:27:03 -05:00

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

View file

@ -9,7 +9,7 @@ use actix_web::{
App, Either, HttpResponse, HttpServer, Responder, App, Either, HttpResponse, HttpServer, Responder,
}; };
use rusqlite::Connection; use rusqlite::Connection;
use std::env; use std::{env, io::Result};
mod auth; mod auth;
mod database; mod database;
mod utils; mod utils;
@ -132,7 +132,7 @@ async fn delete_link(
} }
#[actix_web::main] #[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")); env_logger::init_from_env(env_logger::Env::new().default_filter_or("warn"));
// Generate session key in runtime so that restart invalidates older logins // Generate session key in runtime so that restart invalidates older logins