aboutsummaryrefslogtreecommitdiffstats
path: root/rust/macros/helpers.rs
diff options
context:
space:
mode:
authorBoqun Feng <[email protected]>2023-02-07 18:52:15 +0000
committerMiguel Ojeda <[email protected]>2023-04-10 03:05:39 +0000
commit00140a8308367208d56e93cf08fa1636202a0dc7 (patch)
tree4ee6b03b2d814a7cf6a420ee3e56a629e7f058df /rust/macros/helpers.rs
parentLinux 6.3-rc6 (diff)
downloadkernel-00140a8308367208d56e93cf08fa1636202a0dc7.tar.gz
kernel-00140a8308367208d56e93cf08fa1636202a0dc7.zip
rust: sync: impl {Debug,Display} for {Unique,}Arc
This allows printing the inner data of `Arc` and its friends if the inner data implements `Display` or `Debug`. It's useful for logging and debugging purpose. Signed-off-by: Boqun Feng <[email protected]> Reviewed-by: Vincenzo Palazzo <[email protected]> Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Reviewed-by: Björn Roy Baron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/helpers.rs')
0 files changed, 0 insertions, 0 deletions