Skip to content
Prev Previous commit
Next Next commit
Fix clippy warning
  • Loading branch information
skinnyBat committed Feb 19, 2019
commit e89f8fafe55082143b231b79098d0643e2b1c82c
2 changes: 1 addition & 1 deletion vm/src/pyobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl Drop for PyObjectRef {
// The PyObject is going to be dropped, delete it later when we have access to vm.
// This will error when the tls is destroyed, thus meaning objects won't actually
// be properly destroyed.
if let Err(_) = DELETE_QUEUE.try_with(|q| q.borrow_mut().push_back(self.clone())) {
if DELETE_QUEUE.try_with(|q| q.borrow_mut().push_back(self.clone())).is_err() {
warn!("Object hasn't been cleaned up {:?}.", self);
}
}
Expand Down