mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-26 05:09:35 +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 {
|
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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue