diff --git a/src/responders.rs b/src/responders.rs index 67b5019..20a6160 100644 --- a/src/responders.rs +++ b/src/responders.rs @@ -211,9 +211,9 @@ impl IntoResponseParts for HxRetarget { } } -impl From for HxRetarget { - fn from(value: String) -> Self { - Self(value) +impl> From for HxRetarget { + fn from(value: T) -> Self { + Self(value.into()) } } @@ -240,9 +240,9 @@ impl IntoResponseParts for HxReselect { } } -impl From for HxReselect { - fn from(value: String) -> Self { - Self(value) +impl> From for HxReselect { + fn from(value: T) -> Self { + Self(value.into()) } }