mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-30 15:04:32 +01:00
Generalized response impls
This commit is contained in:
parent
9c894b8d19
commit
8e1094e043
1 changed files with 6 additions and 6 deletions
|
@ -211,9 +211,9 @@ impl IntoResponseParts for HxRetarget {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<String> for HxRetarget {
|
||||
fn from(value: String) -> Self {
|
||||
Self(value)
|
||||
impl<T: Into<String>> From<T> for HxRetarget {
|
||||
fn from(value: T) -> Self {
|
||||
Self(value.into())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -240,9 +240,9 @@ impl IntoResponseParts for HxReselect {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<String> for HxReselect {
|
||||
fn from(value: String) -> Self {
|
||||
Self(value)
|
||||
impl<T: Into<String>> From<T> for HxReselect {
|
||||
fn from(value: T) -> Self {
|
||||
Self(value.into())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue