aboutsummaryrefslogtreecommitdiff
path: root/helix-tui/src/widgets
diff options
context:
space:
mode:
authorPhilipp Mildenberger2023-03-27 23:33:55 +0000
committerGitHub2023-03-27 23:33:55 +0000
commit198ff2c3f9c56afe4649cc0ecbb09ded5fd4a7c7 (patch)
tree5e896645a77ce94046ae39dbe868e6574d663a93 /helix-tui/src/widgets
parent5323020c3f02b178f2b6807f13d89bf7f40d3cce (diff)
Fix clippy lints (#6454)
Diffstat (limited to 'helix-tui/src/widgets')
-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.
///