Skip to content

Commit ea1af2c

Browse files
committed
cleanup
1 parent e75fc22 commit ea1af2c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/render.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1068,13 +1068,13 @@ impl TryFrom<&str> for HeaderComponent {
10681068
type Error = ();
10691069
fn try_from(s: &str) -> Result<Self, Self::Error> {
10701070
match s {
1071-
"status_code" => Ok(HeaderComponent::StatusCode),
1072-
"http_header" => Ok(HeaderComponent::HttpHeader),
1073-
"redirect" => Ok(HeaderComponent::Redirect),
1074-
"json" => Ok(HeaderComponent::Json),
1075-
"csv" => Ok(HeaderComponent::Csv),
1076-
"cookie" => Ok(HeaderComponent::Cookie),
1077-
"authentication" => Ok(HeaderComponent::Authentication),
1071+
"status_code" => Ok(Self::StatusCode),
1072+
"http_header" => Ok(Self::HttpHeader),
1073+
"redirect" => Ok(Self::Redirect),
1074+
"json" => Ok(Self::Json),
1075+
"csv" => Ok(Self::Csv),
1076+
"cookie" => Ok(Self::Cookie),
1077+
"authentication" => Ok(Self::Authentication),
10781078
_ => Err(()),
10791079
}
10801080
}

0 commit comments

Comments
 (0)