Skip to content

Commit a927814

Browse files
committed
assertion for Option<DictEntry> size
1 parent aa10084 commit a927814

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vm/src/dictdatatype.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ struct DictEntry<T> {
108108
index: IndexIndex,
109109
value: T,
110110
}
111+
static_assertions::assert_eq_size!(DictEntry<PyObjectRef>, Option<DictEntry<PyObjectRef>>);
111112

112113
impl<T: Clone> DictEntry<T> {
113114
pub(crate) fn as_tuple(&self) -> (PyObjectRef, T) {

0 commit comments

Comments
 (0)