Fix typos found by crate-ci/typos

This commit is contained in:
Jonas Platte
2023-09-16 22:24:00 +02:00
committed by David Pedersen
parent b0ebb7f728
commit b199604c9f
12 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ If your project isn't listed here and you would like it to be, please feel free
- [aliri_axum](https://docs.rs/aliri_axum) and [aliri_tower](https://docs.rs/aliri_tower): JWT validation middleware and OAuth2 scopes enforcing extractors. - [aliri_axum](https://docs.rs/aliri_axum) and [aliri_tower](https://docs.rs/aliri_tower): JWT validation middleware and OAuth2 scopes enforcing extractors.
- [ezsockets](https://github.com/gbaranski/ezsockets): Easy to use WebSocket library that integrates with Axum. - [ezsockets](https://github.com/gbaranski/ezsockets): Easy to use WebSocket library that integrates with Axum.
- [axum_session](https://github.com/AscendingCreations/AxumSessions): Database persistent sessions like pythons flask_sessionstore for Axum. - [axum_session](https://github.com/AscendingCreations/AxumSessions): Database persistent sessions like pythons flask_sessionstore for Axum.
- [axum_session_auth](https://github.com/AscendingCreations/AxumSessionsAuth): Persistant session based user login with rights management for Axum. - [axum_session_auth](https://github.com/AscendingCreations/AxumSessionsAuth): Persistent session based user login with rights management for Axum.
- [axum-auth](https://crates.io/crates/axum-auth): High-level http auth extractors for axum. - [axum-auth](https://crates.io/crates/axum-auth): High-level http auth extractors for axum.
- [axum-keycloak-auth](https://github.com/lpotthast/axum-keycloak-auth): Protect axum routes with a JWT emitted by Keycloak. - [axum-keycloak-auth](https://github.com/lpotthast/axum-keycloak-auth): Protect axum routes with a JWT emitted by Keycloak.
- [shuttle](https://github.com/getsynth/shuttle): A serverless platform built for Rust. Now with axum support. - [shuttle](https://github.com/getsynth/shuttle): A serverless platform built for Rust. Now with axum support.
+1 -1
View File
@@ -128,7 +128,7 @@ impl CookieJar {
/// Create a new empty `CookieJar`. /// Create a new empty `CookieJar`.
/// ///
/// This is inteded to be used in middleware and other places where it might be difficult to /// This is intended to be used in middleware and other places where it might be difficult to
/// run extractors. Normally you should create `CookieJar`s through [`FromRequestParts`]. /// run extractors. Normally you should create `CookieJar`s through [`FromRequestParts`].
/// ///
/// If you need a jar that contains the headers from a request use `impl From<&HeaderMap> for /// If you need a jar that contains the headers from a request use `impl From<&HeaderMap> for
+1 -1
View File
@@ -170,7 +170,7 @@ impl PrivateCookieJar {
/// Create a new empty `PrivateCookieJarIter`. /// Create a new empty `PrivateCookieJarIter`.
/// ///
/// This is inteded to be used in middleware and other places where it might be difficult to /// This is intended to be used in middleware and other places where it might be difficult to
/// run extractors. Normally you should create `PrivateCookieJar`s through [`FromRequestParts`]. /// run extractors. Normally you should create `PrivateCookieJar`s through [`FromRequestParts`].
/// ///
/// [`FromRequestParts`]: axum::extract::FromRequestParts /// [`FromRequestParts`]: axum::extract::FromRequestParts
+1 -1
View File
@@ -187,7 +187,7 @@ impl SignedCookieJar {
/// Create a new empty `SignedCookieJar`. /// Create a new empty `SignedCookieJar`.
/// ///
/// This is inteded to be used in middleware and other places where it might be difficult to /// This is intended to be used in middleware and other places where it might be difficult to
/// run extractors. Normally you should create `SignedCookieJar`s through [`FromRequestParts`]. /// run extractors. Normally you should create `SignedCookieJar`s through [`FromRequestParts`].
/// ///
/// [`FromRequestParts`]: axum::extract::FromRequestParts /// [`FromRequestParts`]: axum::extract::FromRequestParts
+1 -1
View File
@@ -72,7 +72,7 @@ use std::{
/// ``` /// ```
/// ///
/// In general you should consume `Multipart` by looping over the fields in order and make sure not /// In general you should consume `Multipart` by looping over the fields in order and make sure not
/// to keep `Field`s around from previous loop iterations. That will mimimize the risk of runtime /// to keep `Field`s around from previous loop iterations. That will minimize the risk of runtime
/// errors. /// errors.
/// ///
/// # Differences between this and `axum::extract::Multipart` /// # Differences between this and `axum::extract::Multipart`
+1 -1
View File
@@ -26,7 +26,7 @@ pub trait HandlerCallWithExtractors<T, S, B>: Sized {
/// Call the handler with the extracted inputs. /// Call the handler with the extracted inputs.
fn call(self, extractors: T, state: S) -> <Self as HandlerCallWithExtractors<T, S, B>>::Future; fn call(self, extractors: T, state: S) -> <Self as HandlerCallWithExtractors<T, S, B>>::Future;
/// Conver this `HandlerCallWithExtractors` into [`Handler`]. /// Convert this `HandlerCallWithExtractors` into [`Handler`].
fn into_handler(self) -> IntoHandler<Self, T, S, B> { fn into_handler(self) -> IntoHandler<Self, T, S, B> {
IntoHandler { IntoHandler {
handler: self, handler: self,
+1 -1
View File
@@ -145,7 +145,7 @@ use serde::Serialize;
/// ///
/// ## Customizing the rejection /// ## Customizing the rejection
/// ///
/// By default the rejection used in the [`FromRequest`] implemetation will be [`PathRejection`]. /// By default the rejection used in the [`FromRequest`] implementation will be [`PathRejection`].
/// ///
/// That can be customized using `#[typed_path("...", rejection(YourType))]`: /// That can be customized using `#[typed_path("...", rejection(YourType))]`:
/// ///
+1 -1
View File
@@ -309,7 +309,7 @@ options:
1. Use `Result<T, T::Rejection>` as your extractor like shown in ["Optional 1. Use `Result<T, T::Rejection>` as your extractor like shown in ["Optional
extractors"](#optional-extractors). This works well if you're only using extractors"](#optional-extractors). This works well if you're only using
the extractor in a single handler. the extractor in a single handler.
2. Create your own extractor that in its [`FromRequest`] implemention calls 2. Create your own extractor that in its [`FromRequest`] implementation calls
one of axum's built in extractors but returns a different response for one of axum's built in extractors but returns a different response for
rejections. See the [customize-extractor-error] example for more details. rejections. See the [customize-extractor-error] example for more details.
+2 -2
View File
@@ -16,12 +16,12 @@ more details.
use axum::{routing::get, Router}; use axum::{routing::get, Router};
use tower::limit::ConcurrencyLimitLayer; use tower::limit::ConcurrencyLimitLayer;
async fn hander() {} async fn handler() {}
let app = Router::new().route( let app = Router::new().route(
"/", "/",
// All requests to `GET /` will be sent through `ConcurrencyLimitLayer` // All requests to `GET /` will be sent through `ConcurrencyLimitLayer`
get(hander).layer(ConcurrencyLimitLayer::new(64)), get(handler).layer(ConcurrencyLimitLayer::new(64)),
); );
# async { # async {
# axum::Server::bind(&"".parse().unwrap()).serve(app.into_make_service()).await.unwrap(); # axum::Server::bind(&"".parse().unwrap()).serve(app.into_make_service()).await.unwrap();
+1 -1
View File
@@ -665,7 +665,7 @@ mod tests {
} }
#[test] #[test]
fn memchr_spliting() { fn memchr_splitting() {
assert_eq!( assert_eq!(
memchr_split(2, &[]).collect::<Vec<_>>(), memchr_split(2, &[]).collect::<Vec<_>>(),
[&[]] as [&[u8]; 1] [&[]] as [&[u8]; 1]
+1 -1
View File
@@ -1372,7 +1372,7 @@ mod tests {
} }
#[allow(dead_code)] #[allow(dead_code)]
fn buiding_complex_router() { async fn building_complex_router() {
let app = crate::Router::new().route( let app = crate::Router::new().route(
"/", "/",
// use the all the things 💣️ // use the all the things 💣️
+1 -1
View File
@@ -84,7 +84,7 @@ async fn nested_router_inherits_fallback() {
} }
#[crate::test] #[crate::test]
async fn doesnt_inherit_fallback_if_overriden() { async fn doesnt_inherit_fallback_if_overridden() {
let inner = Router::new().fallback(inner_fallback); let inner = Router::new().fallback(inner_fallback);
let app = Router::new().nest("/foo", inner).fallback(outer_fallback); let app = Router::new().nest("/foo", inner).fallback(outer_fallback);