♻️ 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 menu;
|
||||||
|
|
||||||
pub mod homepage;
|
pub mod homepage;
|
||||||
|
|
|
||||||
|
|
@ -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};
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue