diff options
author | sushi-shi <47691267+sushi-shi@users.noreply.github.com> | 2022-02-25 03:56:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 19:56:32 -0500 |
commit | 5451fd9865f2a75d623992a072eb639ea20e688f (patch) | |
tree | fca079a571f8fe01dc72c9a05daf6efcea18e091 /src/ui | |
parent | 55b401cfa35ee3ce09d2deba94f0d490ad666e9b (diff) |
Fix clippy warnings (#144)
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/views/tui_textfield.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ui/views/tui_textfield.rs b/src/ui/views/tui_textfield.rs index 0040698..544aede 100644 --- a/src/ui/views/tui_textfield.rs +++ b/src/ui/views/tui_textfield.rs @@ -42,6 +42,7 @@ pub struct CursorInfo { pub y: usize, } +#[derive(Default)] pub struct TuiTextField<'a> { _prompt: &'a str, _prefix: &'a str, @@ -377,14 +378,3 @@ fn get_candidates( }; res.ok() } - -impl<'a> std::default::Default for TuiTextField<'a> { - fn default() -> Self { - Self { - _prompt: "", - _prefix: "", - _suffix: "", - _menu_items: vec![], - } - } -} |