From f4aaf4020af6b3ffa4772fc463630fc95a9a8242 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 14 Apr 2022 09:32:11 -0400 Subject: [PATCH] move this --- src/widgets.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {