We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d65ca3b commit 9a942edCopy full SHA for 9a942ed
src/common/access_control_allow_origin.rs
@@ -105,7 +105,7 @@ impl TryFromValues for OriginOrAny {
105
impl<'a> From<&'a OriginOrAny> for HeaderValue {
106
fn from(origin: &'a OriginOrAny) -> HeaderValue {
107
match origin {
108
- OriginOrAny::Origin(ref origin) => origin.into_value(),
+ OriginOrAny::Origin(ref origin) => origin.to_value(),
109
OriginOrAny::Any => HeaderValue::from_static("*"),
110
}
111
src/common/origin.rs
@@ -106,7 +106,7 @@ impl Origin {
OriginOrNull::try_from_value(value).map(Origin)
- pub(super) fn into_value(&self) -> HeaderValue {
+ pub(super) fn to_value(&self) -> HeaderValue {
(&self.0).into()
112
0 commit comments