refactor(headers): remove marker from header_name method
It is no longer required, as we can use `<H as Header>::header_name()`.
BREAKING CHANGE: Implementations of Header will need to adjust the
header_name method. It no longer takes any arguments.
This commit is contained in:
@@ -86,7 +86,7 @@ macro_rules! impl_list_header(
|
||||
deref!($from => $item);
|
||||
|
||||
impl header::Header for $from {
|
||||
fn header_name(_: Option<$from>) -> &'static str {
|
||||
fn header_name() -> &'static str {
|
||||
$name
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ macro_rules! impl_header(
|
||||
deref!($from => $item);
|
||||
|
||||
impl header::Header for $from {
|
||||
fn header_name(_: Option<$from>) -> &'static str {
|
||||
fn header_name() -> &'static str {
|
||||
$name
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user