diff --git a/zed/src/editor/buffer/text.rs b/zed/src/editor/buffer/text.rs index 1a074d4a75bc50bf815e9adad4e64d68a2627300..147ffdd86ab2967738e9e731a1fa130ed10f3656 100644 --- a/zed/src/editor/buffer/text.rs +++ b/zed/src/editor/buffer/text.rs @@ -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() } }