mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 16:55:08 +02:00
use env_logger builders in examples
This commit is contained in:
@ -417,7 +417,7 @@ impl<B> ServiceResponse<B> {
|
||||
}
|
||||
|
||||
impl<B> From<ServiceResponse<B>> for Response<B> {
|
||||
fn into(res: ServiceResponse<B>) -> Response<B> {
|
||||
fn from(res: ServiceResponse<B>) -> Response<B> {
|
||||
res.response
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ where
|
||||
A: Into<Error>,
|
||||
B: Into<Error>,
|
||||
{
|
||||
fn into(err: EitherExtractError<A, B>) -> Error {
|
||||
fn from(err: EitherExtractError<A, B>) -> Error {
|
||||
match err {
|
||||
EitherExtractError::Bytes(err) => err,
|
||||
EitherExtractError::Extract(a_err, _b_err) => a_err.into(),
|
||||
|
Reference in New Issue
Block a user