From 020efce014207241a701dc456da602491b307051 Mon Sep 17 00:00:00 2001 From: Gerrit Viljoen Date: Sun, 17 May 2020 12:38:56 +0200 Subject: [PATCH] save game --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 988df66..018c654 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -383,9 +383,8 @@ impl SmartString { Self { fragments } } - fn from_visible(string: T) -> Self - where T: Display { - Self { fragments: vec![(true, string.to_string())] } + fn from_visible(string: String) -> Self { + Self { fragments: vec![(true, string)] } } fn char_len(&self) -> usize {