This commit is contained in:
JMARyA 2025-01-17 15:02:27 +01:00
parent 0444726a2d
commit 15e70da512
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -44,9 +44,9 @@ impl DivWidget {
/// let div = Div().push(Some("hello"), |value| Text(value));
/// ```
#[must_use]
pub fn push_some<T: UIWidget + 'static, X, U: Fn(&X) -> T>(
pub fn push_some<T: UIWidget + 'static, X, U: Fn(X) -> T>(
mut self,
option: Option<&X>,
option: Option<X>,
then: U,
) -> Self {
if let Some(val) = option {