Skip to content

Commit 9c923a9

Browse files
committed
fix clippy
1 parent 24f2f3d commit 9c923a9

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/pycell.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -830,16 +830,10 @@ mod tests {
830830
Python::attach(|py| {
831831
let obj = SubSubClass::new(py).into_bound(py);
832832
let pyref = obj.borrow();
833-
dbg!(&pyref.inner);
834-
dbg!(&pyref.as_super().inner);
835-
dbg!(std::any::type_name_of_val(&pyref.inner.get_class_object()));
836-
dbg!(std::any::type_name_of_val(
837-
&pyref.as_super().inner.get_class_object()
838-
));
839-
// assert_eq!(pyref.as_super().as_super().val1, 10);
840-
// assert_eq!(pyref.as_super().val2, 15);
841-
// assert_eq!(pyref.as_ref().val2, 15); // `as_ref` also works
842-
// assert_eq!(pyref.val3, 20);
833+
assert_eq!(pyref.as_super().as_super().val1, 10);
834+
assert_eq!(pyref.as_super().val2, 15);
835+
assert_eq!(pyref.as_ref().val2, 15); // `as_ref` also works
836+
assert_eq!(pyref.val3, 20);
843837
assert_eq!(SubSubClass::get_values(pyref), (10, 15, 20));
844838
});
845839
}

0 commit comments

Comments
 (0)