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:
parent
0e974d6d59
commit
261cea6c2f
30 changed files with 372 additions and 448 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue