Clarify to prevent unintended recursions
This commit is contained in:
parent
12003c880c
commit
1cf7744156
1 changed files with 2 additions and 2 deletions
|
@ -102,10 +102,10 @@ impl FormattedStringExt for str {
|
||||||
|
|
||||||
impl FormattedStringExt for String {
|
impl FormattedStringExt for String {
|
||||||
fn is_formatted(&self) -> bool {
|
fn is_formatted(&self) -> bool {
|
||||||
(&self).is_formatted()
|
(&self[..]).is_formatted()
|
||||||
}
|
}
|
||||||
fn strip_formatting(&self) -> Cow<str> {
|
fn strip_formatting(&self) -> Cow<str> {
|
||||||
(&self).strip_formatting()
|
(&self[..]).strip_formatting()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue