aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/text.rs
diff options
context:
space:
mode:
authorNathan Vegdahl2021-07-01 18:57:12 +0000
committerNathan Vegdahl2021-07-02 02:06:52 +0000
commitefa3389b6aa4e07982e1e902b0173d1daa4a301e (patch)
treeea0d826cf4f191422b56ee9a5e9b7dad650af296 /helix-term/src/ui/text.rs
parent702a0491db0fef8ee15cd6fcff3138812da2c2aa (diff)
Fix unused variable, parameter, and `mut` warnings in helix-term.
Diffstat (limited to 'helix-term/src/ui/text.rs')
-rw-r--r--helix-term/src/ui/text.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/ui/text.rs b/helix-term/src/ui/text.rs
index 0d7cd0ed..249cf89e 100644
--- a/helix-term/src/ui/text.rs
+++ b/helix-term/src/ui/text.rs
@@ -13,12 +13,10 @@ impl Text {
}
}
impl Component for Text {
- fn render(&self, area: Rect, surface: &mut Surface, cx: &mut Context) {
+ fn render(&self, area: Rect, surface: &mut Surface, _cx: &mut Context) {
use tui::widgets::{Paragraph, Widget, Wrap};
let contents = tui::text::Text::from(self.contents.clone());
- let style = cx.editor.theme.get("ui.text");
-
let par = Paragraph::new(contents).wrap(Wrap { trim: false });
// .scroll(x, y) offsets