aboutsummaryrefslogtreecommitdiff
path: root/tests/repr_packed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repr_packed.rs')
-rw-r--r--tests/repr_packed.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/repr_packed.rs b/tests/repr_packed.rs
index e87aabf..be7cab9 100644
--- a/tests/repr_packed.rs
+++ b/tests/repr_packed.rs
@@ -33,7 +33,7 @@ fn weird_repr_packed() {
fn drop(&mut self) {
FIELD_ADDR.with(|f| {
f.set(&self.field as *const u8 as usize);
- })
+ });
}
}
@@ -48,5 +48,5 @@ fn weird_repr_packed() {
let field_addr = &x.field as *const u8 as usize;
field_addr
};
- assert_eq!(field_addr, FIELD_ADDR.with(|f| f.get()));
+ assert_eq!(field_addr, FIELD_ADDR.with(Cell::get));
}