♻️ Código revisado con cargo fmt/clippy

This commit is contained in:
Manuel Cillero 2023-01-29 10:44:34 +01:00
parent c5de6f4b6d
commit 14bf2807ae
4 changed files with 5 additions and 2 deletions

View file

@ -1,2 +1,3 @@
pub mod menu; pub mod menu;
pub mod homepage; pub mod homepage;

View file

@ -1,5 +1,5 @@
mod context; mod context;
pub use context::{RenderContext, ContextOp}; pub use context::{ContextOp, RenderContext};
mod definition; mod definition;
pub use definition::{component_mut, component_ref, AnyComponent, BaseComponent, ComponentTrait}; pub use definition::{component_mut, component_ref, AnyComponent, BaseComponent, ComponentTrait};

View file

@ -92,6 +92,7 @@ pub trait ThemeTrait: BaseTheme + Send + Sync {
} }
} }
#[rustfmt::skip]
#[allow(unused_variables)] #[allow(unused_variables)]
fn before_render_component( fn before_render_component(
&self, &self,

View file

@ -157,7 +157,8 @@ impl Page {
if let Some(regions) = self.regions.get_mut(region) { if let Some(regions) = self.regions.get_mut(region) {
regions.add(component); regions.add(component);
} else { } else {
self.regions.insert(region, ComponentsBundle::new_with(component)); self.regions
.insert(region, ComponentsBundle::new_with(component));
} }
self self
} }