diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-01 22:07:04 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-01 22:07:04 +0200 |
| commit | 1e1eb95926f556e666bc20355327abd24d264858 (patch) | |
| tree | e40b68da80b984355baf68a36983d78bb2ec63dd /src/widgets/logview.rs | |
| parent | 5d15bed762c4c699bebc9b5f5e302fa61785ed51 (diff) | |
minor cleanup
Diffstat (limited to 'src/widgets/logview.rs')
| -rw-r--r-- | src/widgets/logview.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/logview.rs b/src/widgets/logview.rs index c5b6432..35c7bed 100644 --- a/src/widgets/logview.rs +++ b/src/widgets/logview.rs @@ -4,6 +4,7 @@ use crate::lua::iobuffer::iobuffer; use super::statusbar::StatusBar; +#[derive(Default)] pub struct LogView { bar: StatusBar, } @@ -29,7 +30,7 @@ impl Widget for &mut LogView { buffer.get() }; - let mut line_area = inner_area.clone(); + let mut line_area = inner_area; line_area.height = 1; line_area.y = inner_area.y + inner_area.height - 1; |