mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 23:58:35 -06:00
chg: Added use std::io::Result
This commit is contained in:
parent
e742c0ab5e
commit
cdc3508a0c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue