thread::ThreadId Display missing #52780
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Currently the
thread::ThreadId
can only be debug rendered. That's not entirely great because it renders with theThreadId()
thing around. Right now to report the thread ID to sentry we transmute it so we can get the inner u64 out.Would it be reasonable to have a
Display
implementation to get a nice string version of the integer in it? There is a bit of precedent for this in Rust:StatusCode
instd::process
can be displayed and so can be process IDs (which are just u32s).The text was updated successfully, but these errors were encountered: