summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2021-09-25 15:39:54 +0200
committerStephan Dilly <dilly.stephan@gmail.com>2021-09-25 15:39:54 +0200
commit915cece734460ddd4af2e4fd47a41b06e9ec240e (patch)
tree3a1b237e81d3151dbac9e317c2e86bbd13b9513d /src/ui
parentd541d0d9f85a3bbbfe834e9a6388dc4a5c81c196 (diff)
cleanup some lints
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/stateful_paragraph.rs25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/ui/stateful_paragraph.rs b/src/ui/stateful_paragraph.rs
index 49b7a22f..43bdeb80 100644
--- a/src/ui/stateful_paragraph.rs
+++ b/src/ui/stateful_paragraph.rs
@@ -1,4 +1,3 @@
-#![allow(dead_code)]
use easy_cast::Cast;
use std::iter;
@@ -49,12 +48,6 @@ pub struct ScrollPos {
pub y: u16,
}
-impl ScrollPos {
- pub const fn new(x: u16, y: u16) -> Self {
- Self { x, y }
- }
-}
-
#[derive(Debug, Copy, Clone, Default)]
pub struct ParagraphState {
/// Scroll
@@ -103,20 +96,20 @@ impl<'a> StatefulParagraph<'a> {
self
}
- pub const fn style(mut self, style: Style) -> Self {
- self.style = style;
- self
- }
-
pub const fn wrap(mut self, wrap: Wrap) -> Self {
self.wrap = Some(wrap);
self
}
- pub const fn alignment(mut self, alignment: Alignment) -> Self {
- self.alignment = alignment;
- self
- }
+ // pub const fn style(mut self, style: Style) -> Self {
+ // self.style = style;
+ // self
+ // }
+
+ // pub const fn alignment(mut self, alignment: Alignment) -> Self {
+ // self.alignment = alignment;
+ // self
+ // }
}
impl<'a> StatefulWidget for StatefulParagraph<'a> {