Skip to content

Commit 6248f16

Browse files
JCKeepjannau
authored andcommitted
rust: alloc: align Debug implementation for Box with Display
Ensure consistency between `Debug` and `Display` for `Box` by updating `Debug` to match the new `Display` style. Acked-by: Danilo Krummrich <[email protected]> Signed-off-by: Guangbo Cui <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Reworded title. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 323a5fc commit 6248f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/alloc/kbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ where
443443
A: Allocator,
444444
{
445445
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
446-
fmt::Debug::fmt(&**self, f)
446+
<T as fmt::Debug>::fmt(&**self, f)
447447
}
448448
}
449449

0 commit comments

Comments
 (0)