Skip to content

Commit 4933e28

Browse files
committed
Auto merge of #1841 - RalfJung:debug, r=RalfJung
use exhaustive struct match for manual Debug impl
2 parents 23f05fc + 7b2d2cf commit 4933e28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/machine.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ pub struct FrameData<'tcx> {
5252
impl<'tcx> std::fmt::Debug for FrameData<'tcx> {
5353
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5454
// Omitting `timing`, it does not support `Debug`.
55+
let FrameData { call_id, catch_unwind, timing: _ } = self;
5556
f.debug_struct("FrameData")
56-
.field("call_id", &self.call_id)
57-
.field("catch_unwind", &self.catch_unwind)
57+
.field("call_id", call_id)
58+
.field("catch_unwind", catch_unwind)
5859
.finish()
5960
}
6061
}

0 commit comments

Comments
 (0)