Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
lib: Fix clippy
Erik Kundt committed 1 year ago
commit 6484ede2919975d4e10cf784c11496211987770c
parent ac71aa514ab6b184680a3dc1be032de6e31b2a17
1 file changed +1 -11
modified src/ui/widget/container.rs
@@ -12,7 +12,7 @@ use crate::ui::{RENDER_WIDTH_LARGE, RENDER_WIDTH_MEDIUM, RENDER_WIDTH_SMALL};

use super::{PredefinedLayout, RenderProps, View, ViewProps, Widget};

-
#[derive(Clone, Debug)]
+
#[derive(Clone, Debug, Default)]
pub struct ColumnView {
    small: bool,
    medium: bool,
@@ -44,16 +44,6 @@ impl ColumnView {
    }
}

-
impl Default for ColumnView {
-
    fn default() -> Self {
-
        Self {
-
            small: false,
-
            medium: false,
-
            large: false,
-
        }
-
    }
-
}
-

#[derive(Clone, Debug)]
pub struct Column<'a> {
    pub text: Text<'a>,