mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-25 14:46:04 +02:00
update tests and clippy warnings
This commit is contained in:
@@ -354,7 +354,6 @@ impl ResponseBuilder {
|
||||
/// ))
|
||||
/// .finish())
|
||||
/// }
|
||||
/// fn main() {}
|
||||
/// ```
|
||||
#[doc(hidden)]
|
||||
pub fn set<H: Header>(&mut self, hdr: H) -> &mut Self {
|
||||
@@ -380,7 +379,6 @@ impl ResponseBuilder {
|
||||
/// .header(http::header::CONTENT_TYPE, "application/json")
|
||||
/// .finish()
|
||||
/// }
|
||||
/// fn main() {}
|
||||
/// ```
|
||||
pub fn header<K, V>(&mut self, key: K, value: V) -> &mut Self
|
||||
where
|
||||
@@ -413,7 +411,6 @@ impl ResponseBuilder {
|
||||
/// .set_header(http::header::CONTENT_TYPE, "application/json")
|
||||
/// .finish()
|
||||
/// }
|
||||
/// fn main() {}
|
||||
/// ```
|
||||
pub fn set_header<K, V>(&mut self, key: K, value: V) -> &mut Self
|
||||
where
|
||||
|
Reference in New Issue
Block a user