aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorPhilipp Mildenberger2023-03-27 23:33:55 +0000
committerGitHub2023-03-27 23:33:55 +0000
commit198ff2c3f9c56afe4649cc0ecbb09ded5fd4a7c7 (patch)
tree5e896645a77ce94046ae39dbe868e6574d663a93 /helix-view/src
parent5323020c3f02b178f2b6807f13d89bf7f40d3cce (diff)
Fix clippy lints (#6454)
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/editor.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 7207baf3..ee535b5c 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -532,10 +532,11 @@ impl Default for CursorShapeConfig {
}
/// bufferline render modes
-#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
+#[derive(Debug, Default, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub enum BufferLine {
/// Don't render bufferline
+ #[default]
Never,
/// Always render
Always,
@@ -543,12 +544,6 @@ pub enum BufferLine {
Multiple,
}
-impl Default for BufferLine {
- fn default() -> Self {
- BufferLine::Never
- }
-}
-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub enum LineNumber {