Skip to content

Commit 379ad1e

Browse files
committed
make name of _tree/_state argument in Widget consistent
1 parent e8f8216 commit 379ad1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/widget.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ where
101101
/// Applies an [`Operation`] to the [`Widget`].
102102
fn operate(
103103
&self,
104-
_state: &mut Tree,
104+
_tree: &mut Tree,
105105
_layout: Layout<'_>,
106106
_renderer: &Renderer,
107107
_operation: &mut dyn Operation,
@@ -113,7 +113,7 @@ where
113113
/// By default, it does nothing.
114114
fn update(
115115
&mut self,
116-
_state: &mut Tree,
116+
_tree: &mut Tree,
117117
_event: Event,
118118
_layout: Layout<'_>,
119119
_cursor: mouse::Cursor,
@@ -129,7 +129,7 @@ where
129129
/// By default, it returns [`mouse::Interaction::Idle`].
130130
fn mouse_interaction(
131131
&self,
132-
_state: &Tree,
132+
_tree: &Tree,
133133
_layout: Layout<'_>,
134134
_cursor: mouse::Cursor,
135135
_viewport: &Rectangle,
@@ -141,7 +141,7 @@ where
141141
/// Returns the overlay of the [`Widget`], if there is any.
142142
fn overlay<'a>(
143143
&'a mut self,
144-
_state: &'a mut Tree,
144+
_tree: &'a mut Tree,
145145
_layout: Layout<'_>,
146146
_renderer: &Renderer,
147147
_translation: Vector,

0 commit comments

Comments
 (0)