aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorMiguel Madrid-MencĂ­a2023-01-27 15:43:46 +0000
committerGitHub2023-01-27 15:43:46 +0000
commitd2d302433747ba04dc2fa541c4da9e878d4a5886 (patch)
treef0c76b6bc4a41e98ecb4c1d0b78525d4927a69e5 /helix-term/src/ui
parent4d548a0ee39c14ba54b672f6b57072cf306c11a9 (diff)
Fix clippy 1.67 warnings (#5697)
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/menu.rs2
-rw-r--r--helix-term/src/ui/picker.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs
index e92578c5..da00aa89 100644
--- a/helix-term/src/ui/menu.rs
+++ b/helix-term/src/ui/menu.rs
@@ -77,7 +77,7 @@ impl<T: Item> Menu<T> {
Self {
options,
editor_data,
- matcher: Box::new(Matcher::default()),
+ matcher: Box::default(),
matches,
cursor: None,
widths: Vec::new(),
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index ccf37eb2..6bd64251 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -431,7 +431,7 @@ impl<T: Item> Picker<T> {
let mut picker = Self {
options,
editor_data,
- matcher: Box::new(Matcher::default()),
+ matcher: Box::default(),
matches: Vec::new(),
cursor: 0,
prompt,