]> saetta.ns0.it Git - rust/zakgrid/commitdiff
Column title default from name.
authorAndrea Zagli <azagli@libero.it>
Mon, 2 Jan 2023 15:14:19 +0000 (16:14 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 2 Jan 2023 15:14:19 +0000 (16:14 +0100)
src/lib.rs

index 7033e55f00b57f0fe69228b09290ad3edac39da8..3f46bb70baff414483001c596c3d644a256207ea 100644 (file)
@@ -19,7 +19,7 @@ impl Column {
        pub fn new(name: &str) -> Column {
                Column {
                        name: String::from(name),
-                       title: String::new(),
+                       title: String::from(name),
                        align: Align::Left,
                        hidden: false,
                }