We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e8f4c commit 6aec4d4Copy full SHA for 6aec4d4
datafusion/physical-plan/src/display.rs
@@ -457,6 +457,12 @@ pub trait DisplayAs {
457
fn fmt_as(&self, t: DisplayFormatType, f: &mut Formatter) -> fmt::Result;
458
}
459
460
+impl<T: DisplayAs> DisplayAs for &T {
461
+ fn fmt_as(&self, t: DisplayFormatType, f: &mut Formatter) -> fmt::Result {
462
+ (*self).fmt_as(t, f)
463
+ }
464
+}
465
+
466
/// A new type wrapper to display `T` implementing`DisplayAs` using the `Default` mode
467
pub struct DefaultDisplay<T>(pub T);
468
0 commit comments