impl From<&str> for MaybeSignal<String> (#472)

This commit is contained in:
g-re-g 2023-02-04 16:47:40 -05:00 committed by GitHub
parent 76aeb573bf
commit 7f77910e91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -586,6 +586,12 @@ impl<T> From<Signal<T>> for MaybeSignal<T> {
}
}
impl From<&str> for MaybeSignal<String> {
fn from(value: &str) -> Self {
Self::Static(value.to_string())
}
}
#[cfg(not(feature = "stable"))]
impl<T> FnOnce<()> for MaybeSignal<T>
where