Generalized response impls

This commit is contained in:
ItsEthra 2023-12-03 21:48:16 +03:00
parent 9c894b8d19
commit 8e1094e043

View file

@ -211,9 +211,9 @@ impl IntoResponseParts for HxRetarget {
} }
} }
impl From<String> for HxRetarget { impl<T: Into<String>> From<T> for HxRetarget {
fn from(value: String) -> Self { fn from(value: T) -> Self {
Self(value) Self(value.into())
} }
} }
@ -240,9 +240,9 @@ impl IntoResponseParts for HxReselect {
} }
} }
impl From<String> for HxReselect { impl<T: Into<String>> From<T> for HxReselect {
fn from(value: String) -> Self { fn from(value: T) -> Self {
Self(value) Self(value.into())
} }
} }