Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <dakr@kernel.org>
Signed-off-by: Guangbo Cui <2407018371@qq.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/tencent_1FC0BC283DA65DD81A8A14EEF25563934E05@qq.com
[ Reworded title. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by

Guangbo Cui and committed by
Miguel Ojeda
517743c4 21e08aa5

+1 -1
+1 -1
rust/kernel/alloc/kbox.rs
··· 443 443 A: Allocator, 444 444 { 445 445 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 446 - fmt::Debug::fmt(&**self, f) 446 + <T as fmt::Debug>::fmt(&**self, f) 447 447 } 448 448 } 449 449