summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Kai Mast <kaimast@cs.cornell.edu>2020-03-28 15:25:55 -0700
committerLibravatar Kai Mast <kaimast@cs.cornell.edu>2020-03-28 15:25:55 -0700
commitcbe9298a0b31c3af05e4515a74dd5d9f997e6af2 (patch)
treeaf5c523e007f0b45e3826fb3239853609212d0d3 /native
parent57b2daa57e7312b3015817d8f400b3523f2e42a7 (diff)
downloadiced-cbe9298a0b31c3af05e4515a74dd5d9f997e6af2.tar.gz
iced-cbe9298a0b31c3af05e4515a74dd5d9f997e6af2.tar.bz2
iced-cbe9298a0b31c3af05e4515a74dd5d9f997e6af2.zip
Clippy
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/text_input/editor.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/native/src/widget/text_input/editor.rs b/native/src/widget/text_input/editor.rs
index 71c4f292..c9b9795d 100644
--- a/native/src/widget/text_input/editor.rs
+++ b/native/src/widget/text_input/editor.rs
@@ -54,8 +54,7 @@ impl<'a> Editor<'a> {
if start > 0 {
self.cursor.move_left(self.value);
-
- let _ = self.value.remove(start - 1);
+ self.value.remove(start - 1);
}
}
}
@@ -70,7 +69,7 @@ impl<'a> Editor<'a> {
let end = self.cursor.end(self.value);
if end < self.value.len() {
- let _ = self.value.remove(end);
+ self.value.remove(end);
}
}
}