From: Andrea Zagli Date: Mon, 2 Jan 2023 15:14:19 +0000 (+0100) Subject: Column title default from name. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=d5428c836d08b61cf681de754146a9f0488cb806;p=rust%2Fzakgrid Column title default from name. --- diff --git a/src/lib.rs b/src/lib.rs index 7033e55..3f46bb7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, }