Skip to content

Commit

Permalink
fix(text_input): compiler errors after Cow change
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Jan 16, 2025
1 parent 8211fb6 commit 1914006
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/widget/text_input/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ where
&self.style,
self.dnd_icon,
self.line_height,
self.error,
self.label,
self.helper_text,
self.error.as_deref(),
self.label.as_deref(),
self.helper_text.as_deref(),
self.helper_size,
self.helper_line_height,
&layout.bounds(),
Expand Down Expand Up @@ -552,7 +552,7 @@ where
.iter()
.map(|l| l.text())
.collect::<String>()
!= self.label.unwrap_or_default()
!= self.label.as_deref().unwrap_or_default()
|| state
.helper_text
.raw()
Expand All @@ -561,7 +561,7 @@ where
.iter()
.map(|l| l.text())
.collect::<String>()
!= self.helper_text.unwrap_or_default()
!= self.helper_text.as_deref().unwrap_or_default()
{
state.is_secure = self.is_secure;
state.dirty = true;
Expand Down Expand Up @@ -669,8 +669,8 @@ where
self.leading_icon.as_ref(),
self.trailing_icon.as_ref(),
self.line_height,
self.label,
self.helper_text,
self.label.as_deref(),
self.helper_text.as_deref(),
self.helper_size,
self.helper_line_height,
font,
Expand Down Expand Up @@ -863,9 +863,9 @@ where
&self.style,
self.dnd_icon,
self.line_height,
self.error,
self.label,
self.helper_text,
self.error.as_deref(),
self.label.as_deref(),
self.helper_text.as_deref(),
self.helper_size,
self.helper_line_height,
viewport,
Expand Down

0 comments on commit 1914006

Please sign in to comment.