mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-01 04:28:57 +00:00
Fix Debug
impl for Text
to only display the slice a Text
refers to
...as opposed to the whole string.
This commit is contained in:
parent
44ab38ac98
commit
5e0d5b7f9a
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ impl<'a> From<&'a str> for Text {
|
|||
|
||||
impl Debug for Text {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_tuple("Text").field(&self.text).finish()
|
||||
f.debug_tuple("Text").field(&self.as_str()).finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue