aboutsummaryrefslogtreecommitdiff
path: root/helix-tui
diff options
context:
space:
mode:
Diffstat (limited to 'helix-tui')
-rw-r--r--helix-tui/src/widgets/block.rs9
1 files changed, 2 insertions, 7 deletions
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.
///