Unverified Commit 13e4d08e authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

Turbopack: Use `Debug` instead of `Display` for `ValueDebugFormat` impl on `RcStr` (#86522)

Stuff like empty `RcStr`s look really confusing if we use `Display`. Also stop using the alternate debug mode for `String`, as it looks like the alternate flag doesn't do anything in this case.
parent 2846e785
......@@ -74,13 +74,13 @@ pub trait ValueDebugFormat {
impl ValueDebugFormat for String {
fn value_debug_format(&self, _depth: usize) -> ValueDebugFormatString<'_> {
ValueDebugFormatString::Sync(format!("{self:#?}"))
ValueDebugFormatString::Sync(format!("{self:?}"))
}
}
impl ValueDebugFormat for RcStr {
fn value_debug_format(&self, _: usize) -> ValueDebugFormatString<'_> {
ValueDebugFormatString::Sync(self.to_string())
fn value_debug_format(&self, _depth: usize) -> ValueDebugFormatString<'_> {
ValueDebugFormatString::Sync(format!("{self:?}"))
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment