fix
This commit is contained in:
parent
0444726a2d
commit
15e70da512
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue