save game

This commit is contained in:
Gerrit Viljoen 2019-12-26 14:15:22 +02:00
parent a73e029385
commit d4beb16845

View File

@ -48,8 +48,9 @@ pub struct ColumnConfig {
impl ColumnConfig {
pub fn new(header: String, align: Align) -> Self {
Self { header, align }
pub fn new<T>(header: T, align: Align) -> Self
where T: AsRef<str> {
Self { header: header.as_ref().to_string(), align }
}
}