diff options
author | Boqun Feng <boqun.feng@gmail.com> | 2023-02-07 19:52:15 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-04-10 05:05:39 +0200 |
commit | 00140a8308367208d56e93cf08fa1636202a0dc7 (patch) | |
tree | 4ee6b03b2d814a7cf6a420ee3e56a629e7f058df /samples/rust | |
parent | Linux 6.3-rc6 (diff) | |
download | linux-00140a8308367208d56e93cf08fa1636202a0dc7.tar.xz linux-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 <boqun.feng@gmail.com>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>
Reviewed-by: Björn Roy Baron <bjorn3_gh@protonmail.com>
Link: https://lore.kernel.org/r/20230207185216.1314638-2-boqun.feng@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'samples/rust')
0 files changed, 0 insertions, 0 deletions