diff options
author | Miguel Madrid-MencĂa | 2023-01-27 15:43:46 +0000 |
---|---|---|
committer | GitHub | 2023-01-27 15:43:46 +0000 |
commit | d2d302433747ba04dc2fa541c4da9e878d4a5886 (patch) | |
tree | f0c76b6bc4a41e98ecb4c1d0b78525d4927a69e5 /helix-term/src | |
parent | 4d548a0ee39c14ba54b672f6b57072cf306c11a9 (diff) |
Fix clippy 1.67 warnings (#5697)
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/menu.rs | 2 | ||||
-rw-r--r-- | helix-term/src/ui/picker.rs | 2 |
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, |