From 86f4f90e750234dfb5b7c8582dd5adf7f46c8cb3 Mon Sep 17 00:00:00 2001 From: Ruchir <61278001+Ruchir28@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:53:03 +0530 Subject: [PATCH] chore: Export EitherExtractError for public use --- actix-web/CHANGES.md | 1 + actix-web/src/lib.rs | 2 +- actix-web/src/types/mod.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/actix-web/CHANGES.md b/actix-web/CHANGES.md index c5a51f984..242a05914 100644 --- a/actix-web/CHANGES.md +++ b/actix-web/CHANGES.md @@ -5,6 +5,7 @@ - `actix_web::response::builder::HttpResponseBuilder::streaming()` now sets `Content-Type` to `application/octet-stream` if `Content-Type` does not exist. - `actix_web::response::builder::HttpResponseBuilder::streaming()` now calls `actix_web::response::builder::HttpResponseBuilder::no_chunking()` if `Content-Length` is set by user. - Add `ws` crate feature (on-by-default) which forwards to `actix-http` and guards some of its `ResponseError` impls. +- Add public export for `EitherExtractError`. ## 4.11.0 diff --git a/actix-web/src/lib.rs b/actix-web/src/lib.rs index ee251320e..ce1d28a35 100644 --- a/actix-web/src/lib.rs +++ b/actix-web/src/lib.rs @@ -121,7 +121,7 @@ pub use crate::{ route::Route, scope::Scope, server::HttpServer, - types::Either, + types::{Either, EitherExtractError}, }; macro_rules! codegen_reexport { diff --git a/actix-web/src/types/mod.rs b/actix-web/src/types/mod.rs index cabe53d6a..5334c46af 100644 --- a/actix-web/src/types/mod.rs +++ b/actix-web/src/types/mod.rs @@ -11,7 +11,7 @@ mod query; mod readlines; pub use self::{ - either::Either, + either::{Either, EitherExtractError}, form::{Form, FormConfig, UrlEncoded}, header::Header, html::Html,