From 198ff2c3f9c56afe4649cc0ecbb09ded5fd4a7c7 Mon Sep 17 00:00:00 2001 From: Philipp Mildenberger Date: Tue, 28 Mar 2023 01:33:55 +0200 Subject: Fix clippy lints (#6454) --- helix-tui/src/widgets/block.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'helix-tui/src') diff --git a/helix-tui/src/widgets/block.rs b/helix-tui/src/widgets/block.rs index 98f84abe..a6fdde4c 100644 --- a/helix-tui/src/widgets/block.rs +++ b/helix-tui/src/widgets/block.rs @@ -7,8 +7,9 @@ use crate::{ use helix_view::graphics::{Rect, Style}; /// Border render type. Defaults to [`BorderType::Plain`]. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] +#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub enum BorderType { + #[default] Plain, Rounded, Double, @@ -26,12 +27,6 @@ impl BorderType { } } -impl Default for BorderType { - fn default() -> BorderType { - BorderType::Plain - } -} - /// Base widget to be used with all upper level ones. It may be used to display a box border around /// the widget and/or add a title. /// -- cgit v1.2.3-70-g09d2