From daffc242455d186abbace11b23245e95d79442cc Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Wed, 14 Feb 2024 09:19:29 +0800 Subject: [PATCH] Misc tidy up (#400) --- README.md | 2 +- actix-identity/README.md | 4 ++-- actix-identity/src/lib.rs | 2 +- actix-limitation/src/middleware.rs | 2 +- actix-session/README.md | 2 +- justfile | 3 +++ 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 641749b45..2771e49c5 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ These crates are provided by the community. | [actix-bincode] | ![crates.io](https://img.shields.io/crates/v/actix-bincode?label=latest) [![dependency status](https://deps.rs/crate/actix-bincode/latest/status.svg)](https://deps.rs/crate/actix-bincode) | Bincode payload extractor for Actix Web | | [sentinel-actix] | ![crates.io](https://img.shields.io/crates/v/sentinel-actix?label=latest) [![dependency status](https://deps.rs/crate/sentinel-actix/latest/status.svg)](https://deps.rs/crate/sentinel-actix) | General and flexible protection for Actix Web | | [actix-telepathy] | ![crates.io](https://img.shields.io/crates/v/actix-telepathy?label=latest) [![dependency status](https://deps.rs/crate/actix-telepathy/latest/status.svg)](https://deps.rs/crate/actix-telepathy) | Build distributed applications with `RemoteActors` and `RemoteMessages`. | -| [apistos] | ![crates.io](https://img.shields.io/crates/v/apistos?label=latest) [![dependency status](https://deps.rs/crate/apistos/latest/status.svg)](https://deps.rs/crate/apistos) | Automatic OpenAPI v3 documentation for Actix Web | +| [apistos] | ![crates.io](https://img.shields.io/crates/v/apistos?label=latest) [![dependency status](https://deps.rs/crate/apistos/latest/status.svg)](https://deps.rs/crate/apistos) | Automatic OpenAPI v3 documentation for Actix Web | To add a crate to this list, submit a pull request. diff --git a/actix-identity/README.md b/actix-identity/README.md index ae7ef01ea..5a47345bd 100644 --- a/actix-identity/README.md +++ b/actix-identity/README.md @@ -47,7 +47,7 @@ async fn main() { // order of registration when it receives an incoming request. .wrap(SessionMiddleware::new( redis_store.clone(), - secret_key.clone() + secret_key.clone(), )) // Your request handlers [...] }) @@ -95,7 +95,7 @@ By default, `actix-identity` does not automatically log out users. You can chang In particular, you can automatically log out users who: -- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`]; +- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`]); - logged in too long ago (see [`IdentityMiddlewareBuilder::login_deadline`]). [`IdentityMiddlewareBuilder::visit_deadline`]: config::IdentityMiddlewareBuilder::visit_deadline diff --git a/actix-identity/src/lib.rs b/actix-identity/src/lib.rs index d05e846bd..d5e08c8c5 100644 --- a/actix-identity/src/lib.rs +++ b/actix-identity/src/lib.rs @@ -85,7 +85,7 @@ By default, `actix-identity` does not automatically log out users. You can chang by customising the configuration for [`IdentityMiddleware`] via [`IdentityMiddleware::builder`]. In particular, you can automatically log out users who: -- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`]; +- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`]); - logged in too long ago (see [`IdentityMiddlewareBuilder::login_deadline`]). [`IdentityMiddlewareBuilder::visit_deadline`]: config::IdentityMiddlewareBuilder::visit_deadline diff --git a/actix-limitation/src/middleware.rs b/actix-limitation/src/middleware.rs index 290f075c1..7696e29ac 100644 --- a/actix-limitation/src/middleware.rs +++ b/actix-limitation/src/middleware.rs @@ -53,7 +53,7 @@ where forward_ready!(service); fn call(&self, req: ServiceRequest) -> Self::Future { - // A mis-configuration of the Actix App will result in a **runtime** failure, so the expect + // A misconfiguration of the Actix App will result in a **runtime** failure, so the expect // method description is important context for the developer. let limiter = req .app_data::>() diff --git a/actix-session/README.md b/actix-session/README.md index 0ecf47343..6c45f29ad 100644 --- a/actix-session/README.md +++ b/actix-session/README.md @@ -38,7 +38,7 @@ To start using sessions in your Actix Web application you must register [`Sessio ```rust use actix_web::{web, App, HttpServer, HttpResponse, Error}; -use actix_session::{Session, SessionMiddleware, storage::RedisActorSessionStore}; +use actix_session::{Session, SessionMiddleware, storage::RedisSessionStore}; use actix_web::cookie::Key; #[actix_web::main] diff --git a/justfile b/justfile index 132914d8b..f641032a8 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,6 @@ +# depends on: +# - https://crates.io/crates/fd-find +# - https://crates.io/crates/cargo-check-external-types _list: @just --list