summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-05-24 20:26:56 +0700
committerLibravatar GitHub <noreply@github.com>2021-05-24 20:26:56 +0700
commitdf971ac99beedb41537763f95f7b14d8bf7475a8 (patch)
tree70bf9d7aac84ae05f841b51dca6eb66c1769de93 /native
parent3918257883dba3cf260bd9764cb7b34101c435e6 (diff)
parent4cbc34524598756ce18cb25a664bc6f256d42851 (diff)
downloadiced-df971ac99beedb41537763f95f7b14d8bf7475a8.tar.gz
iced-df971ac99beedb41537763f95f7b14d8bf7475a8.tar.bz2
iced-df971ac99beedb41537763f95f7b14d8bf7475a8.zip
Merge pull request #830 from Dispersia/upgrade-wgpu
Upgrade wgpu
Diffstat (limited to '')
-rw-r--r--native/src/widget/text_input/cursor.rs4
-rw-r--r--native/src/widget/text_input/editor.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/native/src/widget/text_input/cursor.rs b/native/src/widget/text_input/cursor.rs
index 1e7aee83..4f3b159b 100644
--- a/native/src/widget/text_input/cursor.rs
+++ b/native/src/widget/text_input/cursor.rs
@@ -113,7 +113,7 @@ impl Cursor {
State::Selection { start, end } if end > 0 => {
self.select_range(start, end - 1)
}
- _ => (),
+ _ => {}
}
}
@@ -125,7 +125,7 @@ impl Cursor {
State::Selection { start, end } if end < value.len() => {
self.select_range(start, end + 1)
}
- _ => (),
+ _ => {}
}
}
diff --git a/native/src/widget/text_input/editor.rs b/native/src/widget/text_input/editor.rs
index 20e42567..0b50a382 100644
--- a/native/src/widget/text_input/editor.rs
+++ b/native/src/widget/text_input/editor.rs
@@ -20,7 +20,7 @@ impl<'a> Editor<'a> {
self.cursor.move_left(self.value);
self.value.remove_many(left, right);
}
- _ => (),
+ _ => {}
}
self.value.insert(self.cursor.end(self.value), character);
@@ -35,7 +35,7 @@ impl<'a> Editor<'a> {
self.cursor.move_left(self.value);
self.value.remove_many(left, right);
}
- _ => (),
+ _ => {}
}
self.value.insert_many(self.cursor.end(self.value), content);