Skip to content

Commit 7223e4f

Browse files
committed
remove unnecessary comparisons with true
1 parent eff5484 commit 7223e4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sync.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ mod tests {
13181318
Python::attach(|py| {
13191319
// blocks until the other thread enters a critical section
13201320
with_critical_section_mutex(py, &mutex, |b| {
1321-
assert!(unsafe { *b.get() } == true);
1321+
assert!(unsafe { *b.get() });
13221322
});
13231323
});
13241324
});
@@ -1399,8 +1399,8 @@ mod tests {
13991399
Python::attach(|py| {
14001400
// blocks until the other thread enters a critical section
14011401
with_critical_section_mutex2(py, &m1, &m2, |b1, b2| {
1402-
assert!(unsafe { *b1.get() } == true);
1403-
assert!(unsafe { *b2.get() } == true);
1402+
assert!(unsafe { *b1.get() });
1403+
assert!(unsafe { *b2.get() });
14041404
});
14051405
});
14061406
});

0 commit comments

Comments
 (0)