Skip to content

Commit 1285a0e

Browse files
committed
Fix clippy warnings
1 parent 06a4796 commit 1285a0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vm/src/obj/objdict.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ impl PyDictRef {
183183
pub fn len(self) -> usize {
184184
self.entries.len()
185185
}
186+
pub fn is_empty(&self) -> bool {
187+
self.entries.len() == 0
188+
}
186189

187190
#[pymethod(magic)]
188191
fn sizeof(self) -> usize {

0 commit comments

Comments
 (0)