Actualiza para cumplir recomendaciones de clippy

Básicamente a todos los componentes y elementos principales se les
implementa Default() y se adaptan los constructores para inicializar los
campos de sus estructuras de datos.
This commit is contained in:
Manuel Cillero 2022-07-30 18:32:32 +02:00
parent 0e974d6d59
commit 261cea6c2f
30 changed files with 372 additions and 448 deletions

View file

@ -8,14 +8,8 @@ mod all;
pub use all::add_component_to;
pub(crate) use all::common_components;
use crate::response::page::PageContext;
mod renderable;
pub use renderable::{IsRenderable, Renderable};
pub type Renderable = fn(_: &PageContext) -> bool;
pub fn render_always(_: &PageContext) -> bool {
true
}
pub fn render_never(_: &PageContext) -> bool {
false
}
mod html_markup;
pub use html_markup::HtmlMarkup;