diff --git a/src/widgets.rs b/src/widgets.rs index a10e12e..afe0f9c 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -8,6 +8,10 @@ pub enum Movement { None, } +impl Default for Movement { + fn default() -> Self { Self::None } +} + #[derive(Clone)] pub struct AutoComplete<'a> { pub i: usize, @@ -15,10 +19,6 @@ pub struct AutoComplete<'a> { pub string: String, } -impl Default for Movement { - fn default() -> Self { Self::None } -} - impl<'a> Default for AutoComplete<'a> { fn default() -> AutoComplete<'a> { AutoComplete {