♻️ 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

@ -18,7 +18,7 @@ pub struct Block {
impl Component for Block {
fn new() -> Self {
Block::default()
Self::default()
}
fn id(&self) -> Option<String> {

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 {

View file

@ -106,7 +106,7 @@ impl Default for Intro {
impl Component for Intro {
fn new() -> Self {
Intro::default()
Self::default()
}
fn setup_before_prepare(&mut self, cx: &mut Context) {