diff --git a/src/proto/colors.rs b/src/proto/colors.rs index 6ffb492..ba2afb3 100644 --- a/src/proto/colors.rs +++ b/src/proto/colors.rs @@ -102,10 +102,10 @@ impl FormattedStringExt for str { impl FormattedStringExt for String { fn is_formatted(&self) -> bool { - (&self).is_formatted() + (&self[..]).is_formatted() } fn strip_formatting(&self) -> Cow { - (&self).strip_formatting() + (&self[..]).strip_formatting() } }