Skip to content

Commit 915cece

Browse files
author
Stephan Dilly
committed
cleanup some lints
1 parent d541d0d commit 915cece

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

src/components/options_popup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(dead_code)]
1+
22

33
use std::{cell::RefCell, rc::Rc};
44

src/ui/stateful_paragraph.rs

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(dead_code)]
21

32
use easy_cast::Cast;
43
use std::iter;
@@ -49,12 +48,6 @@ pub struct ScrollPos {
4948
pub y: u16,
5049
}
5150

52-
impl ScrollPos {
53-
pub const fn new(x: u16, y: u16) -> Self {
54-
Self { x, y }
55-
}
56-
}
57-
5851
#[derive(Debug, Copy, Clone, Default)]
5952
pub struct ParagraphState {
6053
/// Scroll
@@ -103,20 +96,20 @@ impl<'a> StatefulParagraph<'a> {
10396
self
10497
}
10598

106-
pub const fn style(mut self, style: Style) -> Self {
107-
self.style = style;
108-
self
109-
}
110-
11199
pub const fn wrap(mut self, wrap: Wrap) -> Self {
112100
self.wrap = Some(wrap);
113101
self
114102
}
115103

116-
pub const fn alignment(mut self, alignment: Alignment) -> Self {
117-
self.alignment = alignment;
118-
self
119-
}
104+
// pub const fn style(mut self, style: Style) -> Self {
105+
// self.style = style;
106+
// self
107+
// }
108+
109+
// pub const fn alignment(mut self, alignment: Alignment) -> Self {
110+
// self.alignment = alignment;
111+
// self
112+
// }
120113
}
121114

122115
impl<'a> StatefulWidget for StatefulParagraph<'a> {

0 commit comments

Comments
 (0)