Skip to content
Snippets Groups Projects
Commit f656b45c authored by Gino Valente's avatar Gino Valente
Browse files

Formatting

parent 55954e41
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ impl Cache for LayoutCache { ...@@ -134,7 +134,7 @@ impl Cache for LayoutCache {
fn set_geo_changed(&mut self, node: Self::Item, flag: GeometryChanged, value: bool) { fn set_geo_changed(&mut self, node: Self::Item, flag: GeometryChanged, value: bool) {
// This method is guaranteed to be called by morphorm every layout so we'll attempt to initialize here // This method is guaranteed to be called by morphorm every layout so we'll attempt to initialize here
self.try_init(node); self.try_init(node);
if value { if value {
// Setting a flag -> Add entry if it does not already exist // Setting a flag -> Add entry if it does not already exist
let geometry_changed = self.geometry_changed.entry(node).or_default(); let geometry_changed = self.geometry_changed.entry(node).or_default();
......
...@@ -517,8 +517,8 @@ impl WidgetManager { ...@@ -517,8 +517,8 @@ impl WidgetManager {
/// * `binding`: the binding to watch /// * `binding`: the binding to watch
/// ///
pub(crate) fn bind<T>(&mut self, id: Index, binding: &Binding<T>) pub(crate) fn bind<T>(&mut self, id: Index, binding: &Binding<T>)
where where
T: resources::Resource + Clone + PartialEq, T: resources::Resource + Clone + PartialEq,
{ {
let dirty_nodes = self.dirty_nodes.clone(); let dirty_nodes = self.dirty_nodes.clone();
let lifetime = self.widget_lifetimes.entry(id).or_default(); let lifetime = self.widget_lifetimes.entry(id).or_default();
......
use crate::core::{ use crate::core::{
render_command::RenderCommand, render_command::RenderCommand,
styles::{Style, StyleProp}, styles::{Style, StyleProp},
CursorIcon, OnLayout, widget, CursorIcon, OnEvent, OnLayout, WidgetProps,
widget, OnEvent, WidgetProps,
}; };
/// Props used by the [`Text`] widget /// Props used by the [`Text`] widget
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment