diff options
author | 2020-03-28 15:25:55 -0700 | |
---|---|---|
committer | 2020-03-28 15:25:55 -0700 | |
commit | cbe9298a0b31c3af05e4515a74dd5d9f997e6af2 (patch) | |
tree | af5c523e007f0b45e3826fb3239853609212d0d3 /native | |
parent | 57b2daa57e7312b3015817d8f400b3523f2e42a7 (diff) | |
download | iced-cbe9298a0b31c3af05e4515a74dd5d9f997e6af2.tar.gz iced-cbe9298a0b31c3af05e4515a74dd5d9f997e6af2.tar.bz2 iced-cbe9298a0b31c3af05e4515a74dd5d9f997e6af2.zip |
Clippy
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/text_input/editor.rs | 5 |
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); } } } |