workaround rustdoc bug for Error

This commit is contained in:
Ali MJ Al-Nasrawy 2021-12-05 09:14:13 +03:00
parent 59be0c65c6
commit 5a4f9575c7
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,12 @@
//! Error and Result module //! Error and Result module
pub use actix_http::error::*; /// This is meant to be a glob import of the whole error module, but rustdoc can't handle
/// shadowing `Error` type, so it is expanded manually.
/// See https://github.com/rust-lang/rust/issues/83375
pub use actix_http::error::{
BlockingError, ContentTypeError, DispatchError, HttpError, ParseError, PayloadError,
};
use derive_more::{Display, Error, From}; use derive_more::{Display, Error, From};
use serde_json::error::Error as JsonError; use serde_json::error::Error as JsonError;
use serde_urlencoded::de::Error as FormDeError; use serde_urlencoded::de::Error as FormDeError;