Skip to content

Commit

Permalink
Correcting fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultraxime committed Jul 23, 2024
1 parent f9490f2 commit 02ac8b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,10 @@ where
if new_val.is_empty() {
new_val = T::zero().to_string();
}

match T::from_str(&new_val) {
Ok(val)
if val >= self.min && val <= self.max && val != self.value =>
if val >= self.min && val <= self.max && val != self.value =>
{
self.value = val;
forward_to_text(event, shell, child, clipboard)
Expand Down

0 comments on commit 02ac8b5

Please sign in to comment.