Skip to content
Snippets Groups Projects
Unverified Commit 3a27a603 authored by Ygg01's avatar Ygg01 Committed by GitHub
Browse files

Apply suggestions from code review


Co-authored-by: default avatarMrGVSV <49806985+MrGVSV@users.noreply.github.com>
parent 4a11f7b9
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ impl LayoutEventDispatcher {
.widget_manager
.layout_cache
.geometry_changed(node_index)
== GeometryChanged::default()
.is_empty()
{
continue;
}
......
......@@ -46,7 +46,7 @@ impl Debug for OnLayout {
impl PartialEq for OnLayout {
fn eq(&self, _: &Self) -> bool {
// TODO what goes here
// Never prevent "==" from being true because of this struct
true
}
}
......@@ -87,9 +87,9 @@ pub trait WidgetProps: std::fmt::Debug + AsAny + Send + Sync {
///
/// Returns `None` if this widget doesn't contain a custom event handler
fn get_on_event(&self) -> Option<OnEvent>;
/// Gets the custom layout handler of this widget
/// Gets the custom layout event handler of this widget
///
/// Returns `None` if this widget doesn't contain a custom event handler
/// Returns `None` if this widget doesn't contain a custom layout event handler
fn get_on_layout(&self) -> Option<OnLayout>;
/// Gets the focusability of this 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