Skip to content

Commit e1da110

Browse files
authored
chore: Add public export for EitherExtractError (#3826)
* chore: Export EitherExtractError for public use * refactor: export EitherExtractError
1 parent 219b988 commit e1da110

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

actix-web/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- `actix_web::response::builder::HttpResponseBuilder::streaming()` now sets `Content-Type` to `application/octet-stream` if `Content-Type` does not exist.
66
- `actix_web::response::builder::HttpResponseBuilder::streaming()` now calls `actix_web::response::builder::HttpResponseBuilder::no_chunking()` if `Content-Length` is set by user.
77
- Add `ws` crate feature (on-by-default) which forwards to `actix-http` and guards some of its `ResponseError` impls.
8+
- Add public export for `EitherExtractError` in `error` module.
89

910
## 4.11.0
1011

actix-web/src/error/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mod response_error;
2121

2222
pub(crate) use self::macros::{downcast_dyn, downcast_get_type_id};
2323
pub use self::{error::Error, internal::*, response_error::ResponseError};
24+
pub use crate::types::EitherExtractError;
2425

2526
/// A convenience [`Result`](std::result::Result) for Actix Web operations.
2627
///

actix-web/src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod query;
1111
mod readlines;
1212

1313
pub use self::{
14-
either::Either,
14+
either::{Either, EitherExtractError},
1515
form::{Form, FormConfig, UrlEncoded},
1616
header::Header,
1717
html::Html,

0 commit comments

Comments
 (0)