mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Remove explicit TryFrom, TryInto imports (#1099)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use super::{IntoResponse, IntoResponseParts, Response, ResponseParts, TryIntoHeaderError};
|
||||
use http::header::{HeaderName, HeaderValue};
|
||||
use std::{convert::TryInto, fmt};
|
||||
use std::fmt;
|
||||
|
||||
/// Append headers to a response.
|
||||
///
|
||||
|
||||
@@ -11,7 +11,7 @@ use http_body::{
|
||||
};
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
convert::{Infallible, TryInto},
|
||||
convert::Infallible,
|
||||
fmt,
|
||||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
|
||||
@@ -3,10 +3,7 @@ use http::{
|
||||
header::{HeaderMap, HeaderName, HeaderValue},
|
||||
Extensions, StatusCode,
|
||||
};
|
||||
use std::{
|
||||
convert::{Infallible, TryInto},
|
||||
fmt,
|
||||
};
|
||||
use std::{convert::Infallible, fmt};
|
||||
|
||||
/// Trait for adding headers and extensions to a response.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user