mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
cleanup some lints
This commit is contained in:
parent
d541d0d9f8
commit
915cece734
2 changed files with 10 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#![allow(dead_code)]
|
|
||||||
|
|
||||||
use std::{cell::RefCell, rc::Rc};
|
use std::{cell::RefCell, rc::Rc};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#![allow(dead_code)]
|
|
||||||
|
|
||||||
use easy_cast::Cast;
|
use easy_cast::Cast;
|
||||||
use std::iter;
|
use std::iter;
|
||||||
|
|
@ -49,12 +48,6 @@ pub struct ScrollPos {
|
||||||
pub y: u16,
|
pub y: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ScrollPos {
|
|
||||||
pub const fn new(x: u16, y: u16) -> Self {
|
|
||||||
Self { x, y }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, Default)]
|
#[derive(Debug, Copy, Clone, Default)]
|
||||||
pub struct ParagraphState {
|
pub struct ParagraphState {
|
||||||
/// Scroll
|
/// Scroll
|
||||||
|
|
@ -103,20 +96,20 @@ impl<'a> StatefulParagraph<'a> {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const fn style(mut self, style: Style) -> Self {
|
|
||||||
self.style = style;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const fn wrap(mut self, wrap: Wrap) -> Self {
|
pub const fn wrap(mut self, wrap: Wrap) -> Self {
|
||||||
self.wrap = Some(wrap);
|
self.wrap = Some(wrap);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const fn alignment(mut self, alignment: Alignment) -> Self {
|
// pub const fn style(mut self, style: Style) -> Self {
|
||||||
self.alignment = alignment;
|
// self.style = style;
|
||||||
self
|
// self
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
// pub const fn alignment(mut self, alignment: Alignment) -> Self {
|
||||||
|
// self.alignment = alignment;
|
||||||
|
// self
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> StatefulWidget for StatefulParagraph<'a> {
|
impl<'a> StatefulWidget for StatefulParagraph<'a> {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue