Skip to content

Commit 0981cc7

Browse files
workingjubileegz
authored andcommitted
Copy, do not reference, packed fields
1 parent d81185b commit 0981cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dtables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<T> DescriptorTablePointer<T> {
5050

5151
impl<T> fmt::Debug for DescriptorTablePointer<T> {
5252
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
53-
unsafe { write!(f, "DescriptorTablePointer ({} {:?})", self.limit, self.base) }
53+
write!(f, "DescriptorTablePointer ({} {:?})", { self.limit }, { self.base } )
5454
}
5555
}
5656

0 commit comments

Comments
 (0)