♻️ Código revisado con cargo fmt/clippy
This commit is contained in:
parent
c5de6f4b6d
commit
14bf2807ae
4 changed files with 5 additions and 2 deletions
|
|
@ -1,2 +1,3 @@
|
|||
pub mod menu;
|
||||
|
||||
pub mod homepage;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
mod context;
|
||||
pub use context::{RenderContext, ContextOp};
|
||||
pub use context::{ContextOp, RenderContext};
|
||||
|
||||
mod definition;
|
||||
pub use definition::{component_mut, component_ref, AnyComponent, BaseComponent, ComponentTrait};
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ pub trait ThemeTrait: BaseTheme + Send + Sync {
|
|||
}
|
||||
}
|
||||
|
||||
#[rustfmt::skip]
|
||||
#[allow(unused_variables)]
|
||||
fn before_render_component(
|
||||
&self,
|
||||
|
|
|
|||
|
|
@ -157,7 +157,8 @@ impl Page {
|
|||
if let Some(regions) = self.regions.get_mut(region) {
|
||||
regions.add(component);
|
||||
} else {
|
||||
self.regions.insert(region, ComponentsBundle::new_with(component));
|
||||
self.regions
|
||||
.insert(region, ComponentsBundle::new_with(component));
|
||||
}
|
||||
self
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue