From a69ed7c29c1061a440763a9ce1e512730682c9b3 Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Tue, 25 Nov 2025 20:18:27 -0500 Subject: [PATCH] Turbopack: Use `Debug` instead of `Display` for `ValueDebugFormat` impl on `RcStr` --- turbopack/crates/turbo-tasks/src/debug/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/turbopack/crates/turbo-tasks/src/debug/mod.rs b/turbopack/crates/turbo-tasks/src/debug/mod.rs index 70bd6b321a367..c046baa733d76 100644 --- a/turbopack/crates/turbo-tasks/src/debug/mod.rs +++ b/turbopack/crates/turbo-tasks/src/debug/mod.rs @@ -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:?}")) } }