save game

This commit is contained in:
Gerrit Viljoen 2020-05-17 12:38:56 +02:00
parent 72af1f2db0
commit 020efce014

View File

@ -383,9 +383,8 @@ impl SmartString {
Self { fragments } Self { fragments }
} }
fn from_visible<T>(string: T) -> Self fn from_visible(string: String) -> Self {
where T: Display { Self { fragments: vec![(true, string)] }
Self { fragments: vec![(true, string.to_string())] }
} }
fn char_len(&self) -> usize { fn char_len(&self) -> usize {