diff options
author | Blaž Hrastnik | 2021-12-03 03:48:07 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-12-03 03:48:07 +0000 |
commit | 34f46e7502a562ffb1a3f681046c6cb7e86f7286 (patch) | |
tree | f6697c3cdfe5c5899180c8c93f39cea0dff03ddb /helix-tui/src/buffer.rs | |
parent | d31bef7fea1aa0cc9455cf082825ccff9614ed5e (diff) |
Bump rust to 1.57, fix new lint failures
Diffstat (limited to 'helix-tui/src/buffer.rs')
-rw-r--r-- | helix-tui/src/buffer.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/helix-tui/src/buffer.rs b/helix-tui/src/buffer.rs index f480bc2f..c49a0200 100644 --- a/helix-tui/src/buffer.rs +++ b/helix-tui/src/buffer.rs @@ -102,7 +102,7 @@ impl Default for Cell { /// buf.get_mut(5, 0).set_char('x'); /// assert_eq!(buf.get(5, 0).symbol, "x"); /// ``` -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Default, Clone, PartialEq)] pub struct Buffer { /// The area represented by this buffer pub area: Rect, @@ -111,15 +111,6 @@ pub struct Buffer { pub content: Vec<Cell>, } -impl Default for Buffer { - fn default() -> Buffer { - Buffer { - area: Default::default(), - content: Vec::new(), - } - } -} - impl Buffer { /// Returns a Buffer with all cells set to the default one pub fn empty(area: Rect) -> Buffer { |