♻️ Cambia Self::default() por Tipo::default()

This commit is contained in:
Manuel Cillero 2025-12-28 13:18:18 +01:00
parent 47c47ba9a0
commit 25d32ec5de
21 changed files with 69 additions and 68 deletions

View file

@ -33,12 +33,13 @@ pub struct Html(Box<dyn Fn(&mut Context) -> Markup + Send + Sync>);
impl Default for Html {
fn default() -> Self {
Html::with(|_| html! {})
Self::with(|_| html! {})
}
}
impl Component for Html {
fn new() -> Self {
Html::default()
Self::default()
}
fn prepare_component(&self, cx: &mut Context) -> PrepareMarkup {