From e01250524745b80f59d770020724ea283dbaa16a Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 21 Mar 2021 23:52:17 +0100 Subject: [PATCH] updating deps --- Cargo.toml | 10 +++++----- src/account.rs | 2 +- src/main.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f6e65b0..a193b5d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,12 +11,12 @@ mysql = [ "diesel/mysql" ] sqlite = [ "diesel/sqlite" ] [dependencies] -actix-rt = "1.1.1" -actix-web = "3.2.0" -actix-files = "0.4.0" +actix-rt = "2.1.0" +actix-web = "3.3.2" +actix-files = "0.5.0" diesel = { version = "1.4", features = ["r2d2", "chrono"] } diesel_migrations = "1.4" -url = "2.1" +url = "2.2" toml = "0.5" lazy_static = "1.4" serde = "1.0" @@ -25,6 +25,6 @@ serde_derive = "1.0" chrono = { version = "0.4", features = ["serde"] } regex = "1.3" base64 = "0.13" -rand = "0.7" +rand = "0.8" askama = "0.10" csrf = "0.4" diff --git a/src/account.rs b/src/account.rs index 47438df..d331930 100644 --- a/src/account.rs +++ b/src/account.rs @@ -282,6 +282,6 @@ pub fn gen_name() -> String { pub fn list_rand(list: &[String]) -> &String { let mut rng = rand::thread_rng(); - let roll = rng.gen_range(0, list.len() - 1); + let roll = rng.gen_range(0..list.len() - 1); &list[roll] } diff --git a/src/main.rs b/src/main.rs index 82c1053..250ecfb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ embed_migrations!("migrations/mysql"); type DbPool = r2d2::Pool>; -#[actix_rt::main] +#[actix_web::main] async fn main() -> std::io::Result<()> { /* std::env::set_var("RUST_LOG", "actix_web=debug"); env_logger::init();*/