theduke opened PR #2915 from interrupt-handle-debug
to main
:
Just a basic
fmt::Debug
implementation for InterrutpHandle.Motiviation: it's annoying to manually implement Debug for types which hold
a handle.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
VMInterrupts
implementsDebug
, so you should be able to deriveDebug
forInterruptHandle
.
theduke submitted PR review.
theduke created PR review comment:
VMInterrupts
is a private imiplementation detail though, with no way to access it via the handle.I feel including it in the debug output would be more confusing than helpful.
theduke edited PR review comment.
theduke edited PR review comment.
theduke edited PR review comment.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Maybe you could at least expose the
Arc
pointer? That would allow for distinguishing between multipleInterruptHandle
instances.
theduke updated PR #2915 from interrupt-handle-debug
to main
.
theduke submitted PR review.
theduke created PR review comment:
In that case it seems more sensible to just derive it.
Pushed an update.
theduke updated PR #2915 from interrupt-handle-debug
to main
.
alexcrichton submitted PR review.
alexcrichton merged PR #2915.
Last updated: Dec 23 2024 at 12:05 UTC