From 42be889c8ac1c32accffe9f09fa6abbfbb7a3f8a Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 11 May 2022 15:45:55 -0400 Subject: [PATCH] cleanup `register_movement` --- src/widgets.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets.rs b/src/widgets.rs index c7b4e8c..b276fb3 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -85,7 +85,7 @@ impl<'a> AutoComplete<'a> { self.apply_hint(hints[self.i]); } - Movement::None => {} + _ => unreachable!(), } } Hint::Single(hint) => { @@ -93,7 +93,7 @@ impl<'a> AutoComplete<'a> { self.apply_hint(hint); } } - Hint::None => {} + _ => unreachable!(), } }